1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Проверка 09.02.2025

This commit is contained in:
MoonTestUse1
2025-02-09 01:11:49 +06:00
parent ce52f8a23a
commit 0aa3ef8fc2
5827 changed files with 14316 additions and 1906434 deletions

View File

@@ -1,5 +1,5 @@
# testing/config.py
# Copyright (C) 2005-2024 the SQLAlchemy authors and contributors
# Copyright (C) 2005-2025 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
@@ -122,7 +122,9 @@ def combinations(
passed, each argument combination is turned into a pytest.param() object,
mapping the elements of the argument tuple to produce an id based on a
character value in the same position within the string template using the
following scheme::
following scheme:
.. sourcecode:: text
i - the given argument is a string that is part of the id only, don't
pass it as an argument
@@ -146,7 +148,7 @@ def combinations(
(operator.ne, "ne"),
(operator.gt, "gt"),
(operator.lt, "lt"),
id_="na"
id_="na",
)
def test_operator(self, opfunc, name):
pass
@@ -228,14 +230,9 @@ def variation(argname_or_fn, cases=None):
@testing.variation("querytyp", ["select", "subquery", "legacy_query"])
@testing.variation("lazy", ["select", "raise", "raise_on_sql"])
def test_thing(
self,
querytyp,
lazy,
decl_base
):
def test_thing(self, querytyp, lazy, decl_base):
class Thing(decl_base):
__tablename__ = 'thing'
__tablename__ = "thing"
# use name directly
rel = relationship("Rel", lazy=lazy.name)
@@ -250,7 +247,6 @@ def variation(argname_or_fn, cases=None):
else:
querytyp.fail()
The variable provided is a slots object of boolean variables, as well
as the name of the case itself under the attribute ".name"