adding edit fields mutate to graphql #766
GitHub Actions / Test Report
succeeded
Jan 19, 2025 in 0s
3 fail, 113 pass in 3m 37s
Annotations
Check warning on line 0 in aiarena.graphql.tests.test_mutations
github-actions / Test Report
test_update_bot_success (aiarena.graphql.tests.test_mutations) failed
test-results/pytest-regular.xml [took 0s]
Raw output
RuntimeError: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
aiarena/graphql/tests/test_mutations.py:14: in test_update_bot_success
user = WebsiteUser.objects.create_user(username="test_user", password="test123")
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/contrib/auth/models.py:161: in create_user
return self._create_user(username, email, password, **extra_fields)
email = None
extra_fields = {'is_staff': False, 'is_superuser': False}
password = 'test123'
self = <django.contrib.auth.models.UserManager object at 0x7f7ac82aec90>
username = 'test_user'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/contrib/auth/models.py:155: in _create_user
user.save(using=self._db)
GlobalUserModel = <class 'aiarena.core.models.website_user.WebsiteUser'>
email = ''
extra_fields = {'is_staff': False, 'is_superuser': False}
password = 'test123'
self = <django.contrib.auth.models.UserManager object at 0x7f7ac82aec90>
user = <WebsiteUser: test_user>
username = 'test_user'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/contrib/auth/base_user.py:76: in save
super().save(*args, **kwargs)
__class__ = <class 'django.contrib.auth.base_user.AbstractBaseUser'>
args = ()
kwargs = {'using': None}
self = <WebsiteUser: test_user>
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/models/base.py:814: in save
self.save_base(
deferred_fields = set()
force_insert = False
force_update = False
self = <WebsiteUser: test_user>
update_fields = None
using = 'default'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/models/base.py:873: in save_base
with context_manager:
cls = <class 'aiarena.core.models.website_user.WebsiteUser'>
context_manager = <django.db.transaction.Atomic object at 0x7f7aae901d30>
force_insert = False
force_update = False
meta = <Options for WebsiteUser>
origin = <class 'aiarena.core.models.website_user.WebsiteUser'>
raw = False
self = <WebsiteUser: test_user>
update_fields = None
using = 'default'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/transaction.py:198: in __enter__
if not connection.get_autocommit():
connection = <DatabaseWrapper vendor='postgresql' alias='default'>
self = <django.db.transaction.Atomic object at 0x7f7aae901d30>
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/backends/base/base.py:464: in get_autocommit
self.ensure_connection()
E RuntimeError: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
self = <DatabaseWrapper vendor='postgresql' alias='default'>
Check warning on line 0 in aiarena.graphql.tests.test_mutations
github-actions / Test Report
test_update_bot_unauthenticated (aiarena.graphql.tests.test_mutations) failed
test-results/pytest-regular.xml [took 1s]
Raw output
RuntimeError: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
aiarena/graphql/tests/test_mutations.py:65: in test_update_bot_unauthenticated
user = WebsiteUser.objects.create_user(username="test_user", password="test123")
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/contrib/auth/models.py:161: in create_user
return self._create_user(username, email, password, **extra_fields)
email = None
extra_fields = {'is_staff': False, 'is_superuser': False}
password = 'test123'
self = <django.contrib.auth.models.UserManager object at 0x7f31d3eaecf0>
username = 'test_user'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/contrib/auth/models.py:155: in _create_user
user.save(using=self._db)
GlobalUserModel = <class 'aiarena.core.models.website_user.WebsiteUser'>
email = ''
extra_fields = {'is_staff': False, 'is_superuser': False}
password = 'test123'
self = <django.contrib.auth.models.UserManager object at 0x7f31d3eaecf0>
user = <WebsiteUser: test_user>
username = 'test_user'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/contrib/auth/base_user.py:76: in save
super().save(*args, **kwargs)
__class__ = <class 'django.contrib.auth.base_user.AbstractBaseUser'>
args = ()
kwargs = {'using': None}
self = <WebsiteUser: test_user>
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/models/base.py:814: in save
self.save_base(
deferred_fields = set()
force_insert = False
force_update = False
self = <WebsiteUser: test_user>
update_fields = None
using = 'default'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/models/base.py:873: in save_base
with context_manager:
cls = <class 'aiarena.core.models.website_user.WebsiteUser'>
context_manager = <django.db.transaction.Atomic object at 0x7f31be9c9cd0>
force_insert = False
force_update = False
meta = <Options for WebsiteUser>
origin = <class 'aiarena.core.models.website_user.WebsiteUser'>
raw = False
self = <WebsiteUser: test_user>
update_fields = None
using = 'default'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/transaction.py:198: in __enter__
if not connection.get_autocommit():
connection = <DatabaseWrapper vendor='postgresql' alias='default'>
self = <django.db.transaction.Atomic object at 0x7f31be9c9cd0>
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/backends/base/base.py:464: in get_autocommit
self.ensure_connection()
E RuntimeError: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
self = <DatabaseWrapper vendor='postgresql' alias='default'>
Check warning on line 0 in aiarena.graphql.tests.test_mutations
github-actions / Test Report
test_update_bot_unauthorized (aiarena.graphql.tests.test_mutations) failed
test-results/pytest-regular.xml [took 1s]
Raw output
RuntimeError: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
aiarena/graphql/tests/test_mutations.py:42: in test_update_bot_unauthorized
owner = WebsiteUser.objects.create_user(username="owner", password="test123")
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/contrib/auth/models.py:161: in create_user
return self._create_user(username, email, password, **extra_fields)
email = None
extra_fields = {'is_staff': False, 'is_superuser': False}
password = 'test123'
self = <django.contrib.auth.models.UserManager object at 0x7f7ac82aec90>
username = 'owner'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/contrib/auth/models.py:155: in _create_user
user.save(using=self._db)
GlobalUserModel = <class 'aiarena.core.models.website_user.WebsiteUser'>
email = ''
extra_fields = {'is_staff': False, 'is_superuser': False}
password = 'test123'
self = <django.contrib.auth.models.UserManager object at 0x7f7ac82aec90>
user = <WebsiteUser: owner>
username = 'owner'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/contrib/auth/base_user.py:76: in save
super().save(*args, **kwargs)
__class__ = <class 'django.contrib.auth.base_user.AbstractBaseUser'>
args = ()
kwargs = {'using': None}
self = <WebsiteUser: owner>
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/models/base.py:814: in save
self.save_base(
deferred_fields = set()
force_insert = False
force_update = False
self = <WebsiteUser: owner>
update_fields = None
using = 'default'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/models/base.py:873: in save_base
with context_manager:
cls = <class 'aiarena.core.models.website_user.WebsiteUser'>
context_manager = <django.db.transaction.Atomic object at 0x7f7aaeaf7ec0>
force_insert = False
force_update = False
meta = <Options for WebsiteUser>
origin = <class 'aiarena.core.models.website_user.WebsiteUser'>
raw = False
self = <WebsiteUser: owner>
update_fields = None
using = 'default'
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/transaction.py:198: in __enter__
if not connection.get_autocommit():
connection = <DatabaseWrapper vendor='postgresql' alias='default'>
self = <django.db.transaction.Atomic object at 0x7f7aaeaf7ec0>
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/django/db/backends/base/base.py:464: in get_autocommit
self.ensure_connection()
E RuntimeError: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
self = <DatabaseWrapper vendor='postgresql' alias='default'>
Loading