Skip to content

Instantly share code, notes, and snippets.

@dabeeeenster
Created January 14, 2022 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dabeeeenster/105132c9f301fb0518eabc0ea4ec5088 to your computer and use it in GitHub Desktop.
Save dabeeeenster/105132c9f301fb0518eabc0ea4ec5088 to your computer and use it in GitHub Desktop.
custom_auth/tests/test_serializer.py .. [ 2%]
custom_auth/tests/end_to_end/test_custom_auth_integration.py ...... [ 3%]
e2etests/tests/end_to_end/test_integration_e2e_tests.py . [ 4%]
environments/identities/tests/test_helpers.py ... [ 4%]
environments/identities/tests/test_views.py ..................... [ 8%]
environments/identities/traits/tests/test_models.py .. [ 8%]
environments/identities/traits/tests/test_views.py ..................... [ 12%]
environments/permissions/tests/test_permissions.py ............... [ 15%]
environments/permissions/tests/test_views.py ........ [ 16%]
environments/tests/test_authentication.py ..... [ 17%]
environments/tests/test_models.py ........... [ 19%]
environments/tests/test_views.py ................. [ 22%]
features/feature_segments/tests/test_models.py ... [ 23%]
features/feature_segments/tests/test_views.py ..... [ 23%]
features/tests/test_models.py F...................... [ 28%]
features/tests/test_permissions.py ...................... [ 32%]
features/tests/test_tasks.py . [ 32%]
features/tests/test_views.py .............................. [ 37%]
integrations/amplitude/tests/test_views.py ..... [ 38%]
integrations/datadog/tests/test_views.py ..... [ 39%]
integrations/heap/tests/test_views.py ..... [ 40%]
integrations/mixpanel/tests/test_views.py ..... [ 41%]
integrations/new_relic/tests/test_views.py ..... [ 42%]
integrations/segment/tests/test_views.py ..... [ 42%]
organisations/invites/tests/test_models.py ... [ 43%]
organisations/invites/tests/test_views.py .... [ 44%]
organisations/permissions/tests/test_permissions.py .. [ 44%]
organisations/permissions/tests/test_views.py .......... [ 46%]
organisations/tests/test_models.py ..F.. [ 47%]
organisations/tests/test_views.py ........................ [ 51%]
projects/tags/tests/test_models.py . [ 51%]
projects/tags/tests/test_permissions.py ...... [ 52%]
projects/tests/test_models.py .. [ 53%]
projects/tests/test_permissions.py .................. [ 56%]
projects/tests/test_views.py ............... [ 59%]
segments/tests/test_models.py .. [ 59%]
segments/tests/test_permissions.py ...... [ 60%]
segments/tests/test_views.py ..... [ 61%]
tests/integration/audit/test_audit_logs.py . [ 61%]
tests/integration/custom_auth/sso/saml/test_integration_saml.py ....... [ 62%]
tests/integration/environments/test_clone_environment.py .... [ 63%]
tests/integration/environments/identities/test_edge_identitiy_view.py ......... [ 65%]
tests/integration/environments/identities/test_integration_identities.py .... [ 65%]
tests/integration/sales_dashboard/test_integration_sales_dashboard.py . [ 66%]
tests/integration/slack/test_slack_environment_viewset.py ....... [ 67%]
tests/integration/slack/test_slack_token_flow.py .. [ 67%]
tests/integration/users/test_init_config.py .... [ 68%]
tests/unit/audit/test_unit_audit_signals.py ... [ 68%]
tests/unit/custom_auth/test_unit_custom_auth_serializers.py . [ 69%]
tests/unit/custom_auth/sso/oauth/test_unit_oauth_serializers.py . [ 69%]
tests/unit/custom_auth/sso/saml/test_unit_saml_cache.py .. [ 69%]
tests/unit/custom_auth/sso/saml/test_unit_saml_serializers.py .... [ 70%]
tests/unit/environments/test_environments_feature_states_views.py ... [ 70%]
tests/unit/environments/identities/test_identities_feature_states_views.py ... [ 71%]
tests/unit/integrations/amplitude/test_unit_amplitude.py . [ 71%]
tests/unit/integrations/heap/test_unit_heap.py . [ 71%]
tests/unit/integrations/segment/test_unit_segment.py . [ 71%]
tests/unit/telemetry/test_unit_telemetry_models.py . [ 72%]
users/tests/test_forms.py . [ 72%]
users/tests/test_models.py ............... [ 74%]
users/tests/test_serializer.py . [ 75%]
users/tests/test_signals.py .. [ 75%]
users/tests/test_views.py ................. [ 78%]
webhooks/tests/test_webhooks.py .. [ 78%]
environments/identities/tests/test_models.py .........
.......... [ 82%]
features/tests/test_migrations.py FEFE [ 82%]
organisations/permissions/tests/test_migrations.py FE [ 82%]
app_analytics/tests/test_influxdb_wrapper.py ..... [ 83%]
app_analytics/tests/test_unit_track.py .......... [ 85%]
core/middleware/tests/test_middleware_admin.py ... [ 86%]
custom_auth/sso/oauth/helpers/tests/test_unit_github_helpers.py ..... [ 86%]
environments/dynamodb/tests/test_dynamodb_identity_wrapper.py ...... [ 88%]
environments/identities/tests/test_helpers.py ..... [ 88%]
environments/identities/traits/tests/test_models.py ............ [ 91%]
features/tests/test_helpers.py ...... [ 92%]
features/tests/test_utils.py ....... [ 93%]
integrations/datadog/tests/test_datadog.py .... [ 94%]
integrations/new_relic/tests/test_new_relic.py .... [ 94%]
integrations/sentry/tests/test_sampler.py .... [ 95%]
organisations/tests/test_chargebee.py ..... [ 96%]
tests/unit/custom_auth/sso/oauth/test_unit_oauth_github.py ..... [ 97%]
tests/unit/custom_auth/sso/oauth/test_unit_oauth_google.py .. [ 97%]
tests/unit/custom_auth/sso/oauth/test_unit_oauth_serializers.py .. [ 98%]
tests/unit/integrations/amplitude/test_unit_amplitude.py . [ 98%]
tests/unit/integrations/segment/test_unit_segment.py . [ 98%]
tests/unit/integrations/slack/test_unit_slack.py ....... [ 99%]
tests/unit/telemetry/test_unit_telemetry_serializers.py . [ 99%]
tests/unit/telemetry/test_unit_telemetry_telemetry.py . [100%]
========================================================================== ERRORS ==========================================================================
________________________________________________ ERROR at teardown of test_migrate_feature_segments_forward ________________________________________________
self = <django.db.backends.utils.CursorWrapper object at 0x7fc3818212e8>
sql = 'CREATE TABLE "ENVIRONMENTS_ENVIRONMENTPEB8E0" ("KEY" NVARCHAR2(100) NOT NULL PRIMARY KEY, "DESCRIPTION" NCLOB NULL)', params = None
ignored_wrapper_args = (False, {'connection': <django.db.backends.oracle.base.DatabaseWrapper object at 0x7fc38e677f60>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fc3818212e8>})
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
> return self.cursor.execute(sql)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc3818214a8>
query = 'CREATE TABLE "ENVIRONMENTS_ENVIRONMENTPEB8E0" ("KEY" NVARCHAR2(100) NOT NULL PRIMARY KEY, "DESCRIPTION" NCLOB NULL)', params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E cx_Oracle.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
The above exception was the direct cause of the following exception:
self = <django_test_migrations.migrator.Migrator object at 0x7fc381d89710>
def reset(self) -> None:
"""
Reset the state to the most recent one.
Notably, signals are not muted here to avoid
https://github.com/wemake-services/django-test-migrations/issues/128
"""
> call_command('migrate', verbosity=0, database=self._database)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django_test_migrations/migrator.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/__init__.py:148: in call_command
return command.execute(*args, **defaults)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/base.py:364: in execute
output = self.handle(*args, **options)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/base.py:83: in wrapped
res = handle_func(*args, **kwargs)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/commands/migrate.py:234: in handle
fake_initial=fake_initial,
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:117: in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:245: in apply_migration
state = migration.apply(state, schema_editor)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/operations/models.py:92: in database_forwards
schema_editor.create_model(model)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:307: in create_model
self.execute(sql, params or None)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:137: in execute
cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:67: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:76: in _execute_with_wrappers
return executor(sql, params, many, context)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:84: in _execute
return self.cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/utils.py:89: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82: in _execute
return self.cursor.execute(sql)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc3818214a8>
query = 'CREATE TABLE "ENVIRONMENTS_ENVIRONMENTPEB8E0" ("KEY" NVARCHAR2(100) NOT NULL PRIMARY KEY, "DESCRIPTION" NCLOB NULL)', params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E django.db.utils.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
________________________________________________ ERROR at teardown of test_migrate_feature_segments_reverse ________________________________________________
self = <django.db.backends.utils.CursorWrapper object at 0x7fc38081a080>
sql = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = None
ignored_wrapper_args = (False, {'connection': <django.db.backends.oracle.base.DatabaseWrapper object at 0x7fc38e677f60>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fc38081a080>})
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
> return self.cursor.execute(sql)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc38081ada0>
query = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E cx_Oracle.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
The above exception was the direct cause of the following exception:
self = <django_test_migrations.migrator.Migrator object at 0x7fc381912be0>
def reset(self) -> None:
"""
Reset the state to the most recent one.
Notably, signals are not muted here to avoid
https://github.com/wemake-services/django-test-migrations/issues/128
"""
> call_command('migrate', verbosity=0, database=self._database)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django_test_migrations/migrator.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/__init__.py:148: in call_command
return command.execute(*args, **defaults)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/base.py:364: in execute
output = self.handle(*args, **options)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/base.py:83: in wrapped
res = handle_func(*args, **kwargs)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/commands/migrate.py:234: in handle
fake_initial=fake_initial,
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:117: in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:245: in apply_migration
state = migration.apply(state, schema_editor)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/operations/models.py:92: in database_forwards
schema_editor.create_model(model)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:307: in create_model
self.execute(sql, params or None)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:137: in execute
cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:67: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:76: in _execute_with_wrappers
return executor(sql, params, many, context)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:84: in _execute
return self.cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/utils.py:89: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82: in _execute
return self.cursor.execute(sql)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc38081ada0>
query = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E django.db.utils.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
___________________________________ ERROR at teardown of test_migration_creates_create_project_permissions_for_org_users ___________________________________
self = <django.db.backends.utils.CursorWrapper object at 0x7fc381376f28>
sql = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = None
ignored_wrapper_args = (False, {'connection': <django.db.backends.oracle.base.DatabaseWrapper object at 0x7fc38e677f60>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fc381376f28>})
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
> return self.cursor.execute(sql)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc3813764e0>
query = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E cx_Oracle.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
The above exception was the direct cause of the following exception:
self = <django_test_migrations.migrator.Migrator object at 0x7fc37e2b0cc0>
def reset(self) -> None:
"""
Reset the state to the most recent one.
Notably, signals are not muted here to avoid
https://github.com/wemake-services/django-test-migrations/issues/128
"""
> call_command('migrate', verbosity=0, database=self._database)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django_test_migrations/migrator.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/__init__.py:148: in call_command
return command.execute(*args, **defaults)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/base.py:364: in execute
output = self.handle(*args, **options)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/base.py:83: in wrapped
res = handle_func(*args, **kwargs)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/management/commands/migrate.py:234: in handle
fake_initial=fake_initial,
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:117: in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:245: in apply_migration
state = migration.apply(state, schema_editor)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/operations/models.py:92: in database_forwards
schema_editor.create_model(model)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:307: in create_model
self.execute(sql, params or None)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:137: in execute
cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:67: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:76: in _execute_with_wrappers
return executor(sql, params, many, context)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:84: in _execute
return self.cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/utils.py:89: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82: in _execute
return self.cursor.execute(sql)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc3813764e0>
query = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E django.db.utils.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
========================================================================= FAILURES =========================================================================
________________________________________ FeatureTestCase.test_cannot_create_feature_with_same_case_insensitive_name ________________________________________
self = <features.tests.test_models.FeatureTestCase testMethod=test_cannot_create_feature_with_same_case_insensitive_name>
def test_cannot_create_feature_with_same_case_insensitive_name(self):
# Given
feature_name = "Test Feature"
feature_one = Feature(project=self.project, name=feature_name)
feature_two = Feature(project=self.project, name=feature_name.lower())
# When
feature_one.save()
# Then
with pytest.raises(IntegrityError):
> feature_two.save()
E Failed: DID NOT RAISE <class 'django.db.utils.IntegrityError'>
features/tests/test_models.py:122: Failed
____________________________________________ OrganisationTestCase.test_has_subscription_missing_subscription_id ____________________________________________
self = <organisations.tests.test_models.OrganisationTestCase testMethod=test_has_subscription_missing_subscription_id>
def test_has_subscription_missing_subscription_id(self):
# Given
organisation = Organisation.objects.create(name="Test org")
Subscription.objects.create(organisation=organisation)
# Then
> assert not organisation.has_subscription()
E AssertionError: assert not True
E + where True = <bound method Organisation.has_subscription of <Organisation: Org Test org (#254)>>()
E + where <bound method Organisation.has_subscription of <Organisation: Org Test org (#254)>> = <Organisation: Org Test org (#254)>.has_subscription
organisations/tests/test_models.py:42: AssertionError
__________________________________________________________ test_migrate_feature_segments_forward ___________________________________________________________
self = <django.db.backends.utils.CursorWrapper object at 0x7fc37e3f0390>
sql = 'CREATE TABLE "ENVIRONMENTS_USERPERMISSIOAEEB" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIM...IN" NUMBER(1) NOT NULL CHECK ("ADMIN" IN (0,1)), "ENVIRONMENT_ID" NUMBER(11) NOT NULL, "GROUP_ID" NUMBER(11) NOT NULL)'
params = None
ignored_wrapper_args = (False, {'connection': <django.db.backends.oracle.base.DatabaseWrapper object at 0x7fc38e677f60>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fc37e3f0390>})
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
> return self.cursor.execute(sql)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc38187b198>
query = 'CREATE TABLE "ENVIRONMENTS_USERPERMISSIOAEEB" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIM...IN" NUMBER(1) NOT NULL CHECK ("ADMIN" IN (0,1)), "ENVIRONMENT_ID" NUMBER(11) NOT NULL, "GROUP_ID" NUMBER(11) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E cx_Oracle.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
The above exception was the direct cause of the following exception:
migrator = <django_test_migrations.migrator.Migrator object at 0x7fc381d89710>
def test_migrate_feature_segments_forward(migrator):
# Given - the migration state is at 0017 (before the migration we want to test)
old_state = migrator.apply_initial_migration(
> ("features", "0017_auto_20200607_1005")
)
features/tests/test_migrations.py:4:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django_test_migrations/migrator.py:61: in apply_initial_migration
return self._migrate(targets, plan=plan)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django_test_migrations/migrator.py:84: in _migrate
return self._executor.migrate(migration_targets, plan=plan)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:117: in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:245: in apply_migration
state = migration.apply(state, schema_editor)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/operations/models.py:92: in database_forwards
schema_editor.create_model(model)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:307: in create_model
self.execute(sql, params or None)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:137: in execute
cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:67: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:76: in _execute_with_wrappers
return executor(sql, params, many, context)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:84: in _execute
return self.cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/utils.py:89: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82: in _execute
return self.cursor.execute(sql)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc38187b198>
query = 'CREATE TABLE "ENVIRONMENTS_USERPERMISSIOAEEB" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIM...IN" NUMBER(1) NOT NULL CHECK ("ADMIN" IN (0,1)), "ENVIRONMENT_ID" NUMBER(11) NOT NULL, "GROUP_ID" NUMBER(11) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E django.db.utils.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
__________________________________________________________ test_migrate_feature_segments_reverse ___________________________________________________________
self = <django.db.backends.utils.CursorWrapper object at 0x7fc37e3c6128>
sql = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = None
ignored_wrapper_args = (False, {'connection': <django.db.backends.oracle.base.DatabaseWrapper object at 0x7fc38e677f60>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fc37e3c6128>})
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
> return self.cursor.execute(sql)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc381a4a048>
query = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E cx_Oracle.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
The above exception was the direct cause of the following exception:
migrator = <django_test_migrations.migrator.Migrator object at 0x7fc381912be0>
def test_migrate_feature_segments_reverse(migrator):
# Given - migration state is at 0018, after the migration we want to test in reverse
old_state = migrator.apply_initial_migration(
> ("features", "0018_auto_20200607_1057")
)
features/tests/test_migrations.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django_test_migrations/migrator.py:61: in apply_initial_migration
return self._migrate(targets, plan=plan)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django_test_migrations/migrator.py:84: in _migrate
return self._executor.migrate(migration_targets, plan=plan)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:117: in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:245: in apply_migration
state = migration.apply(state, schema_editor)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/operations/models.py:92: in database_forwards
schema_editor.create_model(model)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:307: in create_model
self.execute(sql, params or None)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:137: in execute
cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:67: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:76: in _execute_with_wrappers
return executor(sql, params, many, context)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:84: in _execute
return self.cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/utils.py:89: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82: in _execute
return self.cursor.execute(sql)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc381a4a048>
query = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E django.db.utils.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
_____________________________________________ test_migration_creates_create_project_permissions_for_org_users ______________________________________________
self = <django.db.backends.utils.CursorWrapper object at 0x7fc3809eb978>
sql = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = None
ignored_wrapper_args = (False, {'connection': <django.db.backends.oracle.base.DatabaseWrapper object at 0x7fc38e677f60>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fc3809eb978>})
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
> return self.cursor.execute(sql)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc3809eb240>
query = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E cx_Oracle.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
The above exception was the direct cause of the following exception:
migrator = <django_test_migrations.migrator.Migrator object at 0x7fc37e2b0cc0>
def test_migration_creates_create_project_permissions_for_org_users(migrator):
# Given
# we use one of the dependencies of the migration we want to test to set the
# initial state of the database correctly
old_state = migrator.apply_initial_migration(
> ("organisations", "0027_organisation_restrict_project_create_to_admin")
)
organisations/permissions/tests/test_migrations.py:10:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django_test_migrations/migrator.py:61: in apply_initial_migration
return self._migrate(targets, plan=plan)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django_test_migrations/migrator.py:84: in _migrate
return self._executor.migrate(migration_targets, plan=plan)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:117: in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:147: in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/executor.py:245: in apply_migration
state = migration.apply(state, schema_editor)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/migration.py:124: in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/migrations/operations/models.py:92: in database_forwards
schema_editor.create_model(model)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:307: in create_model
self.execute(sql, params or None)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/base/schema.py:137: in execute
cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:67: in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:76: in _execute_with_wrappers
return executor(sql, params, many, context)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:84: in _execute
return self.cursor.execute(sql, params)
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/utils.py:89: in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/utils.py:82: in _execute
return self.cursor.execute(sql)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.oracle.base.FormatStylePlaceholderCursor object at 0x7fc3809eb240>
query = 'CREATE TABLE "API_ENVIRONMENT" ("ID" NUMBER(11) GENERATED BY DEFAULT ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "NAME" NVARCHAR2(2000) NULL, "CREATED_DATE" TIMESTAMP NOT NULL, "API_KEY" VARCHAR2(32) NOT NULL)'
params = ()
def execute(self, query, params=None):
query, params = self._fix_for_params(query, params, unify_by_values=True)
self._guess_input_sizes([params])
with wrap_oracle_errors():
> return self.cursor.execute(query, self._param_generator(params))
E django.db.utils.DatabaseError: ORA-00955: name is already used by an existing object
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/backends/oracle/base.py:510: DatabaseError
===================================================================== warnings summary =====================================================================
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/marshmallow/fields.py:184: 78 warnings
/home/ben/.asdf/installs/python/3.6.15/lib/python3.6/site-packages/marshmallow/fields.py:184: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead.
RemovedInMarshmallow4Warning,
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/marshmallow/fields.py:460: 231 warnings
/home/ben/.asdf/installs/python/3.6.15/lib/python3.6/site-packages/marshmallow/fields.py:460: RemovedInMarshmallow4Warning: The 'missing' attribute of fields is deprecated. Use 'load_default' instead.
RemovedInMarshmallow4Warning,
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/marshmallow/fields.py:222
/home/ben/.asdf/installs/python/3.6.15/lib/python3.6/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'delimiter': ':'}
RemovedInMarshmallow4Warning,
../../.asdf/installs/python/3.6.15/lib/python3.6/site-packages/marshmallow/fields.py:176
/home/ben/.asdf/installs/python/3.6.15/lib/python3.6/site-packages/marshmallow/fields.py:176: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead.
RemovedInMarshmallow4Warning,
app/tests/test_urls.py: 1 warning
environments/identities/tests/test_models.py: 19 warnings
/home/ben/flagsmith-ee/api/users/signals.py:14: RuntimeWarning: YOUR INSTALLATION IS INSECURE: PLEASE ACCESS http://<your-server-domain:8000>/api/v1/users/config/init/ TO CREATE A SUPER USER
RuntimeWarning,
app/tests/test_urls.py: 1 warning
custom_auth/sso/oauth/tests/test_oauth_views.py: 6 warnings
custom_auth/tests/end_to_end/test_custom_auth_integration.py: 6 warnings
e2etests/tests/end_to_end/test_integration_e2e_tests.py: 1 warning
environments/identities/tests/test_views.py: 21 warnings
environments/identities/traits/tests/test_views.py: 21 warnings
environments/permissions/tests/test_views.py: 8 warnings
environments/tests/test_views.py: 17 warnings
features/feature_segments/tests/test_views.py: 5 warnings
features/tests/test_views.py: 30 warnings
integrations/amplitude/tests/test_views.py: 5 warnings
integrations/datadog/tests/test_views.py: 5 warnings
integrations/heap/tests/test_views.py: 5 warnings
integrations/mixpanel/tests/test_views.py: 5 warnings
integrations/new_relic/tests/test_views.py: 5 warnings
integrations/segment/tests/test_views.py: 5 warnings
organisations/invites/tests/test_views.py: 4 warnings
organisations/permissions/tests/test_views.py: 10 warnings
organisations/tests/test_views.py: 24 warnings
projects/tests/test_views.py: 15 warnings
segments/tests/test_views.py: 5 warnings
tests/integration/audit/test_audit_logs.py: 1 warning
tests/integration/custom_auth/sso/saml/test_integration_saml.py: 20 warnings
tests/integration/environments/test_clone_environment.py: 4 warnings
tests/integration/environments/identities/test_edge_identitiy_view.py: 9 warnings
tests/integration/environments/identities/test_integration_identities.py: 8 warnings
tests/integration/sales_dashboard/test_integration_sales_dashboard.py: 1 warning
tests/integration/slack/test_slack_environment_viewset.py: 12 warnings
tests/integration/slack/test_slack_token_flow.py: 3 warnings
tests/integration/users/test_init_config.py: 4 warnings
tests/unit/environments/test_environments_feature_states_views.py: 3 warnings
tests/unit/environments/identities/test_identities_feature_states_views.py: 3 warnings
users/tests/test_views.py: 17 warnings
/home/ben/.asdf/installs/python/3.6.15/lib/python3.6/site-packages/whitenoise/django.py:50: RemovedInDjango31Warning: The FILE_CHARSET setting is deprecated. Starting with Django 3.1, all files read from disk must be UTF-8 encoded.
self.charset = settings.FILE_CHARSET
environments/tests/test_authentication.py::EnvironmentKeyAuthenticationTestCase::test_authenticate_raises_authentication_failed_if_request_missing_environment_key
/home/ben/.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/core/cache/backends/base.py:250: CacheKeyWarning: Cache key contains characters that will cause errors if used with memcached: ":1:<MagicMock name='mock.META.get()' id='140477664844040'>"
warnings.warn(warning, CacheKeyWarning)
features/tests/test_models.py::FeatureTestCase::test_creating_feature_with_initial_value_should_set_value_for_all_feature_states
features/tests/test_models.py::FeatureTestCase::test_creating_feature_with_initial_value_should_set_value_for_all_feature_states
/home/ben/flagsmith-ee/api/features/tests/test_models.py:67: DeprecationWarning: Please use assertEqual instead.
feature_state.get_feature_state_value(), "This is a value"
features/tests/test_models.py::FeatureTestCase::test_feature_should_create_feature_states_for_environments
/home/ben/flagsmith-ee/api/features/tests/test_models.py:36: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(feature_states.count(), 2)
organisations/tests/test_views.py::ChargeBeeWebhookTestCase::test_when_subscription_is_cancelled_then_cancellation_date_set_and_alert_sent
/home/ben/.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/models/fields/__init__.py:1427: RuntimeWarning: DateTimeField Subscription.cancellation_date received a naive datetime (2022-01-15 16:52:20.164215) while time zone support is active.
RuntimeWarning)
organisations/tests/test_views.py::ChargeBeeWebhookTestCase::test_when_subscription_is_set_to_non_renewing_then_cancellation_date_set_and_alert_sent
/home/ben/.asdf/installs/python/3.6.15/lib/python3.6/site-packages/django/db/models/fields/__init__.py:1427: RuntimeWarning: DateTimeField Subscription.cancellation_date received a naive datetime (2022-01-15 16:52:20.715226) while time zone support is active.
RuntimeWarning)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
================================================================= short test summary info ==================================================================
FAILED features/tests/test_models.py::FeatureTestCase::test_cannot_create_feature_with_same_case_insensitive_name - Failed: DID NOT RAISE <class 'django....
FAILED organisations/tests/test_models.py::OrganisationTestCase::test_has_subscription_missing_subscription_id - AssertionError: assert not True
FAILED features/tests/test_migrations.py::test_migrate_feature_segments_forward - django.db.utils.DatabaseError: ORA-00955: name is already used by an ex...
FAILED features/tests/test_migrations.py::test_migrate_feature_segments_reverse - django.db.utils.DatabaseError: ORA-00955: name is already used by an ex...
FAILED organisations/permissions/tests/test_migrations.py::test_migration_creates_create_project_permissions_for_org_users - django.db.utils.DatabaseErro...
ERROR features/tests/test_migrations.py::test_migrate_feature_segments_forward - django.db.utils.DatabaseError: ORA-00955: name is already used by an exi...
ERROR features/tests/test_migrations.py::test_migrate_feature_segments_reverse - django.db.utils.DatabaseError: ORA-00955: name is already used by an exi...
ERROR organisations/permissions/tests/test_migrations.py::test_migration_creates_create_project_permissions_for_org_users - django.db.utils.DatabaseError...
============================================ 5 failed, 554 passed, 626 warnings, 3 errors in 1098.79s (0:18:18) ============================================
ben@dev:~/flagsmith-ee/api$
ben@dev:~/flagsmith-ee/api$
ben@dev:~/flagsmith-ee/api$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment