Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__init__.py +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_1293.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_1419.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_313.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_356.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_425.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_490.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_881.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_956.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/test_1293.py +41 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/test_881.py +27 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/__init__.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/argument.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/base.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/base64.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/datetime.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/decimal.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/definitions.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/dynamic.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/enum.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/field.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/generic.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/inputfield.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/inputobjecttype.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/interface.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/json.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/mountedtype.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/mutation.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/objecttype.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/resolver.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/scalars.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/schema.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/structures.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/union.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/unmountedtype.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/utils.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/uuid.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__init__.py +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/__init__.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/conftest.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_argument.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_base.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_base64.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_datetime.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_decimal.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_definition.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_dynamic.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_enum.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_field.cpython-312.pyc +0 -0
- platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_generic.cpython-312.pyc +0 -0
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__init__.py
ADDED
|
File without changes
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_1293.cpython-312.pyc
ADDED
|
Binary file (2.5 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_1419.cpython-312.pyc
ADDED
|
Binary file (2.29 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_313.cpython-312.pyc
ADDED
|
Binary file (2.95 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_356.cpython-312.pyc
ADDED
|
Binary file (1.86 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_425.cpython-312.pyc
ADDED
|
Binary file (7.19 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_490.cpython-312.pyc
ADDED
|
Binary file (1.2 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_881.cpython-312.pyc
ADDED
|
Binary file (1.44 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/__pycache__/test_956.cpython-312.pyc
ADDED
|
Binary file (710 Bytes). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/test_1293.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# https://github.com/graphql-python/graphene/issues/1293
|
| 2 |
+
|
| 3 |
+
from datetime import datetime, timezone
|
| 4 |
+
|
| 5 |
+
import graphene
|
| 6 |
+
from graphql.utilities import print_schema
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
class Filters(graphene.InputObjectType):
|
| 10 |
+
datetime_after = graphene.DateTime(
|
| 11 |
+
required=False,
|
| 12 |
+
default_value=datetime.fromtimestamp(1434549820.776, timezone.utc),
|
| 13 |
+
)
|
| 14 |
+
datetime_before = graphene.DateTime(
|
| 15 |
+
required=False,
|
| 16 |
+
default_value=datetime.fromtimestamp(1444549820.776, timezone.utc),
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class SetDatetime(graphene.Mutation):
|
| 21 |
+
class Arguments:
|
| 22 |
+
filters = Filters(required=True)
|
| 23 |
+
|
| 24 |
+
ok = graphene.Boolean()
|
| 25 |
+
|
| 26 |
+
def mutate(root, info, filters):
|
| 27 |
+
return SetDatetime(ok=True)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
class Query(graphene.ObjectType):
|
| 31 |
+
goodbye = graphene.String()
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
class Mutations(graphene.ObjectType):
|
| 35 |
+
set_datetime = SetDatetime.Field()
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def test_schema_printable_with_default_datetime_value():
|
| 39 |
+
schema = graphene.Schema(query=Query, mutation=Mutations)
|
| 40 |
+
schema_str = print_schema(schema.graphql_schema)
|
| 41 |
+
assert schema_str, "empty schema printed"
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/tests/issues/test_881.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pickle
|
| 2 |
+
|
| 3 |
+
from ...types.enum import Enum
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class PickleEnum(Enum):
|
| 7 |
+
# is defined outside of test because pickle unable to dump class inside ot pytest function
|
| 8 |
+
A = "a"
|
| 9 |
+
B = 1
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def test_enums_pickling():
|
| 13 |
+
a = PickleEnum.A
|
| 14 |
+
pickled = pickle.dumps(a)
|
| 15 |
+
restored = pickle.loads(pickled)
|
| 16 |
+
assert type(a) is type(restored)
|
| 17 |
+
assert a == restored
|
| 18 |
+
assert a.value == restored.value
|
| 19 |
+
assert a.name == restored.name
|
| 20 |
+
|
| 21 |
+
b = PickleEnum.B
|
| 22 |
+
pickled = pickle.dumps(b)
|
| 23 |
+
restored = pickle.loads(pickled)
|
| 24 |
+
assert type(a) is type(restored)
|
| 25 |
+
assert b == restored
|
| 26 |
+
assert b.value == restored.value
|
| 27 |
+
assert b.name == restored.name
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (1.33 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/argument.cpython-312.pyc
ADDED
|
Binary file (5.25 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/base.cpython-312.pyc
ADDED
|
Binary file (2.81 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/base64.cpython-312.pyc
ADDED
|
Binary file (2.3 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/datetime.cpython-312.pyc
ADDED
|
Binary file (5.31 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/decimal.cpython-312.pyc
ADDED
|
Binary file (1.72 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/definitions.cpython-312.pyc
ADDED
|
Binary file (2.99 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/dynamic.cpython-312.pyc
ADDED
|
Binary file (1.36 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/enum.cpython-312.pyc
ADDED
|
Binary file (5.66 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/field.cpython-312.pyc
ADDED
|
Binary file (6.18 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/generic.cpython-312.pyc
ADDED
|
Binary file (2.17 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/inputfield.cpython-312.pyc
ADDED
|
Binary file (3.25 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/inputobjecttype.cpython-312.pyc
ADDED
|
Binary file (5.2 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/interface.cpython-312.pyc
ADDED
|
Binary file (3.36 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/json.cpython-312.pyc
ADDED
|
Binary file (1.76 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/mountedtype.cpython-312.pyc
ADDED
|
Binary file (1.11 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/mutation.cpython-312.pyc
ADDED
|
Binary file (5.67 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/objecttype.cpython-312.pyc
ADDED
|
Binary file (6.81 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/resolver.cpython-312.pyc
ADDED
|
Binary file (1.21 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/scalars.cpython-312.pyc
ADDED
|
Binary file (7.72 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/schema.cpython-312.pyc
ADDED
|
Binary file (22.5 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/structures.cpython-312.pyc
ADDED
|
Binary file (4.92 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/union.cpython-312.pyc
ADDED
|
Binary file (3.42 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/unmountedtype.cpython-312.pyc
ADDED
|
Binary file (3.56 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/utils.cpython-312.pyc
ADDED
|
Binary file (2.15 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/__pycache__/uuid.cpython-312.pyc
ADDED
|
Binary file (1.88 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__init__.py
ADDED
|
File without changes
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (173 Bytes). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/conftest.cpython-312.pyc
ADDED
|
Binary file (746 Bytes). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_argument.cpython-312.pyc
ADDED
|
Binary file (4.8 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_base.cpython-312.pyc
ADDED
|
Binary file (3.96 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_base64.cpython-312.pyc
ADDED
|
Binary file (5 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_datetime.cpython-312.pyc
ADDED
|
Binary file (9.73 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_decimal.cpython-312.pyc
ADDED
|
Binary file (3.81 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_definition.cpython-312.pyc
ADDED
|
Binary file (17.4 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_dynamic.cpython-312.pyc
ADDED
|
Binary file (2.87 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_enum.cpython-312.pyc
ADDED
|
Binary file (29.4 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_field.cpython-312.pyc
ADDED
|
Binary file (8.18 kB). View file
|
|
|
platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/graphene/types/tests/__pycache__/test_generic.cpython-312.pyc
ADDED
|
Binary file (2.6 kB). View file
|
|
|