Fix registration of templates with no required or authorizedRoles defined. #9253
GitHub Actions / Unit Test Results
failed
Feb 19, 2024 in 0s
2 errors in 1s
Annotations
github-actions / Unit Test Results
tests_ma.test_db.test_repositories.test_resource_templates_repository with error
artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/api/tests_ma/test_db/test_repositories/test_resource_templates_repository.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests_ma/test_db/test_repositories/test_resource_templates_repository.py:4: in <module>
from models.domain.user_resource_template import UserResourceTemplate, WorkspaceTemplateInCreate
E ImportError: cannot import name 'WorkspaceTemplateInCreate' from 'models.domain.user_resource_template' (/api/models/domain/user_resource_template.py)
github-actions / Unit Test Results
tests_ma.test_db.test_repositories.test_shared_service_templates_repository with error
artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/api/tests_ma/test_db/test_repositories/test_shared_service_templates_repository.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests_ma/test_db/test_repositories/test_shared_service_templates_repository.py:7: in <module>
from .test_resource_templates_repository import sample_resource_template_as_dict
tests_ma/test_db/test_repositories/test_resource_templates_repository.py:4: in <module>
from models.domain.user_resource_template import UserResourceTemplate, WorkspaceTemplateInCreate
E ImportError: cannot import name 'WorkspaceTemplateInCreate' from 'models.domain.user_resource_template' (/api/models/domain/user_resource_template.py)
Check notice on line 0 in .github
github-actions / Unit Test Results
2 tests found
There are 2 tests, see "Raw output" for the full list of tests.
Raw output
tests_ma.test_db.test_repositories.test_resource_templates_repository
tests_ma.test_db.test_repositories.test_shared_service_templates_repository
Loading