Skip to content

Failed on test : route  #2

Description

@swetank01

$ docker-compose -f docker-compose-dev.yml run users python manage.py test

Starting users-db ... done

test_config (unittest.loader._FailedTest) ... ERROR
test_users (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: test_config (unittest.loader._FailedTest)

ImportError: Failed to import test module: test_config
Traceback (most recent call last):
File "/usr/local/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
import(name)
File "/usr/src/app/project/tests/test_config.py", line 7
from project import create_app app = create_app()
^
SyntaxError: invalid syntax

======================================================================
ERROR: test_users (unittest.loader._FailedTest)

ImportError: Failed to import test module: test_users
Traceback (most recent call last):
File "/usr/local/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
import(name)
File "/usr/src/app/project/tests/test_users.py", line 4, in
from project.tests.base import BaseTestCase
File "/usr/src/app/project/tests/base.py", line 3
from project import create_app app = create_app()
^
SyntaxError: invalid syntax

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions