-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-report.xml
23 lines (22 loc) · 1.87 KB
/
test-report.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="2" failures="0" skipped="0" tests="2" time="7.530" timestamp="2023-11-10T09:30:13.688944" hostname="AMANL2JV6VF74"><testcase classname="" name="lambda_code.tests.test_get_imms" time="0.000"><error message="collection failure">ImportError while importing test module '/Users/ewan.childs/Desktop/NHS/Bebop/immunisation-fhir-api/lambda_code/tests/test_get_imms.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.9/3.9.18/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
lambda_code/tests/test_get_imms.py:10: in <module>
from dynamodb import EventTable
E ImportError: cannot import name 'EventTable' from 'dynamodb' (/Users/ewan.childs/Desktop/NHS/Bebop/immunisation-fhir-api/dynamodb/__init__.py)</error></testcase><testcase classname="" name="tests.test_auth" time="0.000"><error message="collection failure">tests/configuration/environment.py:6: in get_env
var = os.environ[variable_name]
/usr/local/Cellar/python@3.9/3.9.18/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py:679: in __getitem__
raise KeyError(key) from None
E KeyError: 'APIGEE_ENVIRONMENT'
During handling of the above exception, another exception occurred:
tests/test_auth.py:3: in <module>
from .configuration import config
tests/configuration/config.py:1: in <module>
from .environment import ENV
tests/configuration/environment.py:15: in <module>
"environment": get_env("APIGEE_ENVIRONMENT"),
tests/configuration/environment.py:11: in get_env
raise RuntimeError(f"Variable is not set, Check {variable_name}.")
E RuntimeError: Variable is not set, Check APIGEE_ENVIRONMENT.</error></testcase></testsuite></testsuites>