(venv) โ qlued git:(main) โ python manage.py test
Found 28 test(s).
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/whitenoise/base.py:115: UserWarning: No directory at: /Users/fuzao/Documents/qlued/staticfiles/
warnings.warn(u"No directory at: {}".format(root))
F.EEFFFEFFFFEFFFF.......EEE.
======================================================================
ERROR: test_multiqudit_get_config (backends.tests.BackendConfigTest)
Test the API that presents the capabilities of the backend
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests.py", line 105, in test_multiqudit_get_config
data["basis_gates"], ["rlx", "rlz", "rlz2", "rlxly", "rlzlz"]
KeyError: 'basis_gates'
======================================================================
ERROR: test_singlequdit_get_config (backends.tests.BackendConfigTest)
Test the API that presents the capabilities of the backend
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests.py", line 81, in test_singlequdit_get_config
self.assertEqual(data["display_name"], "singlequdit")
KeyError: 'display_name'
======================================================================
ERROR: test_fermions_get_config_ninja (backends.tests_api_v1.BackendConfigTest)
Test the API that presents the capabilities of the backend through the new version
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v1.py", line 35, in test_fermions_get_config_ninja
req = self.client.get(
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 927, in get
response = super().get(path, data=data, secure=secure, headers=headers, **extra)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 457, in get
return self.generic(
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 609, in generic
return self.request(**r)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 891, in request
self.check_exception(response)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 738, in check_exception
raise exc_value
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/operation.py", line 348, in _sync_view
return operation.run(request, *a, **kw)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/operation.py", line 111, in run
return self.api.on_exception(request, e)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/main.py", line 468, in on_exception
return handler(request, exc)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/errors.py", line 104, in _default_exception
raise exc # let django deal with it
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/operation.py", line 105, in run
return self._result_to_response(request, result, temporal_response)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/operation.py", line 202, in _result_to_response
result = response_model.from_orm(resp_object).dict(
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/schema.py", line 164, in from_orm
return super().from_orm(obj)
File "pydantic/main.py", line 574, in pydantic.main.BaseModel.from_orm
pydantic.error_wrappers.ValidationError: 9 validation errors for NinjaResponseSchema
response -> description
field required (type=value_error.missing)
response -> cold_atom_type
field required (type=value_error.missing)
response -> wire_order
field required (type=value_error.missing)
response -> display_name
field required (type=value_error.missing)
response -> backend_version
field required (type=value_error.missing)
response -> n_qubits
field required (type=value_error.missing)
response -> backend_name
field required (type=value_error.missing)
response -> basis_gates
field required (type=value_error.missing)
response -> url
field required (type=value_error.missing)
======================================================================
ERROR: test_fermions_get_config_ninja (backends.tests_api_v2.BackendConfigTest)
Test the API that presents the capabilities of the backend through the new version
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v2.py", line 42, in test_fermions_get_config_ninja
req = self.client.get(url)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 927, in get
response = super().get(path, data=data, secure=secure, headers=headers, **extra)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 457, in get
return self.generic(
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 609, in generic
return self.request(**r)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 891, in request
self.check_exception(response)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/test/client.py", line 738, in check_exception
raise exc_value
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/operation.py", line 348, in _sync_view
return operation.run(request, *a, **kw)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/operation.py", line 111, in run
return self.api.on_exception(request, e)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/main.py", line 468, in on_exception
return handler(request, exc)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/errors.py", line 104, in _default_exception
raise exc # let django deal with it
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/operation.py", line 105, in run
return self._result_to_response(request, result, temporal_response)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/operation.py", line 202, in _result_to_response
result = response_model.from_orm(resp_object).dict(
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/ninja/schema.py", line 164, in from_orm
return super().from_orm(obj)
File "pydantic/main.py", line 574, in pydantic.main.BaseModel.from_orm
pydantic.error_wrappers.ValidationError: 9 validation errors for NinjaResponseSchema
response -> description
field required (type=value_error.missing)
response -> cold_atom_type
field required (type=value_error.missing)
response -> wire_order
field required (type=value_error.missing)
response -> display_name
field required (type=value_error.missing)
response -> backend_version
field required (type=value_error.missing)
response -> n_qubits
field required (type=value_error.missing)
response -> backend_name
field required (type=value_error.missing)
response -> basis_gates
field required (type=value_error.missing)
response -> url
field required (type=value_error.missing)
======================================================================
ERROR: test_configs (backends.tests_storage_provider.DropboxProvideTest)
Test that we are able to obtain a list of backends.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_storage_provider.py", line 19, in setUp
self.storage_provider = DropboxProvider()
File "/Users/fuzao/Documents/qlued/backends/storage_providers.py", line 137, in __init__
self.app_key = config("APP_KEY")
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/decouple.py", line 248, in __call__
return self.config(*args, **kwargs)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/decouple.py", line 107, in __call__
return self.get(*args, **kwargs)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/decouple.py", line 92, in get
raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option))
decouple.UndefinedValueError: APP_KEY not found. Declare it as envvar or define a default value.
======================================================================
ERROR: test_jobs (backends.tests_storage_provider.DropboxProvideTest)
Test that we can handle the necessary functions for the jobs and status.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_storage_provider.py", line 19, in setUp
self.storage_provider = DropboxProvider()
File "/Users/fuzao/Documents/qlued/backends/storage_providers.py", line 137, in __init__
self.app_key = config("APP_KEY")
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/decouple.py", line 248, in __call__
return self.config(*args, **kwargs)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/decouple.py", line 107, in __call__
return self.get(*args, **kwargs)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/decouple.py", line 92, in get
raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option))
decouple.UndefinedValueError: APP_KEY not found. Declare it as envvar or define a default value.
======================================================================
ERROR: test_upload_etc (backends.tests_storage_provider.DropboxProvideTest)
Test that it is possible to upload a file.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_storage_provider.py", line 19, in setUp
self.storage_provider = DropboxProvider()
File "/Users/fuzao/Documents/qlued/backends/storage_providers.py", line 137, in __init__
self.app_key = config("APP_KEY")
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/decouple.py", line 248, in __call__
return self.config(*args, **kwargs)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/decouple.py", line 107, in __call__
return self.get(*args, **kwargs)
File "/Users/fuzao/Documents/qlued/venv/lib/python3.9/site-packages/decouple.py", line 92, in get
raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option))
decouple.UndefinedValueError: APP_KEY not found. Declare it as envvar or define a default value.
======================================================================
FAIL: test_fermions_get_config (backends.tests.BackendConfigTest)
Test the API that presents the capabilities of the backend
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests.py", line 48, in test_fermions_get_config
self.assertEqual(req.status_code, 200)
AssertionError: 404 != 200
======================================================================
FAIL: test_get_job_result (backends.tests.JobSubmissionTest)
Test the API that checks the job status
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests.py", line 266, in test_get_job_result
self.assertEqual(data["status"], "INITIALIZING")
AssertionError: 'ERROR' != 'INITIALIZING'
- ERROR
+ INITIALIZING
======================================================================
FAIL: test_get_job_status (backends.tests.JobSubmissionTest)
Test the API that checks the job status
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests.py", line 219, in test_get_job_status
self.assertEqual(data["status"], "INITIALIZING")
AssertionError: 'ERROR' != 'INITIALIZING'
- ERROR
+ INITIALIZING
======================================================================
FAIL: test_post_job (backends.tests.JobSubmissionTest)
Test the API that presents the capabilities of the backend
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests.py", line 171, in test_post_job
self.assertEqual(data["status"], "INITIALIZING")
AssertionError: 'ERROR' != 'INITIALIZING'
- ERROR
+ INITIALIZING
======================================================================
FAIL: test_get_backends_ninja (backends.tests_api_v1.BackendConfigTest)
Test that we are able to obtain the config of all the backends.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v1.py", line 71, in test_get_backends_ninja
self.assertTrue(len(data) >= 4)
AssertionError: False is not true
======================================================================
FAIL: test_get_job_result_ninja (backends.tests_api_v1.JobSubmissionTest)
Test the API that checks the job status
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v1.py", line 223, in test_get_job_result_ninja
self.assertEqual(data["status"], "INITIALIZING")
AssertionError: 'ERROR' != 'INITIALIZING'
- ERROR
+ INITIALIZING
======================================================================
FAIL: test_get_job_status_ninja (backends.tests_api_v1.JobSubmissionTest)
Test the API that checks the job status
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v1.py", line 172, in test_get_job_status_ninja
self.assertEqual(data["status"], "INITIALIZING")
AssertionError: 'ERROR' != 'INITIALIZING'
- ERROR
+ INITIALIZING
======================================================================
FAIL: test_post_job_ninja (backends.tests_api_v1.JobSubmissionTest)
Test the API that presents the capabilities of the backend
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v1.py", line 120, in test_post_job_ninja
self.assertEqual(data["status"], "INITIALIZING")
AssertionError: 'ERROR' != 'INITIALIZING'
- ERROR
+ INITIALIZING
======================================================================
FAIL: test_get_backends_ninja (backends.tests_api_v2.BackendConfigTest)
Test that we are able to obtain the config of all the backends.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v2.py", line 76, in test_get_backends_ninja
self.assertTrue(len(data) >= 4)
AssertionError: False is not true
======================================================================
FAIL: test_get_job_result_ninja (backends.tests_api_v2.JobSubmissionTest)
Test the API that checks the job status
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v2.py", line 229, in test_get_job_result_ninja
self.assertEqual(data["status"], "INITIALIZING")
AssertionError: 'ERROR' != 'INITIALIZING'
- ERROR
+ INITIALIZING
======================================================================
FAIL: test_get_job_status_ninja (backends.tests_api_v2.JobSubmissionTest)
Test the API that checks the job status
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v2.py", line 169, in test_get_job_status_ninja
self.assertEqual(data["status"], "INITIALIZING")
AssertionError: 'ERROR' != 'INITIALIZING'
- ERROR
+ INITIALIZING
======================================================================
FAIL: test_post_job_ninja (backends.tests_api_v2.JobSubmissionTest)
Test the API that presents the capabilities of the backend
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fuzao/Documents/qlued/backends/tests_api_v2.py", line 130, in test_post_job_ninja
self.assertEqual(data["status"], "INITIALIZING")
AssertionError: 'ERROR' != 'INITIALIZING'
- ERROR
+ INITIALIZING
----------------------------------------------------------------------
Ran 28 tests in 5.105s
FAILED (failures=12, errors=7)
Destroying test database for alias 'default'...