xosadmin / c5proj

“歡迎來到冒險家協會!Welcome to the Adventurers Guild! “
GNU General Public License v3.0
0 stars 0 forks source link

Unit Test Not working #4

Closed xosadmin closed 2 months ago

xosadmin commented 2 months ago

When try to run any unit_test python file, it always prompts an error, as below:

The command I used: python3 -m unittest tests/authentication_test.py -v

Traceback (most recent call last): File "//tests/authentication_test.py", line 2, in from ..app import * ImportError: attempted relative import with no known parent package

Any idea or anyone to fix it?

jikang1116 commented 2 months ago

I will try to look into that

xosadmin commented 2 months ago

It seems like the unit test cannot find the "app" package. Any idea to fix that?

xosadmin commented 2 months ago

This issue has been solved since my commit #4c14ad8.