gl186 / SprintFinish

Sprint 2 and final assessment project for Group 1 (Module 3 PGCert Clinical Bioniformatics Intro to Programming)
The Unlicense
0 stars 1 forks source link

Test_unit_module4_VEP.py only runs correctly when it is in the same directory as module4_VEP_code_only.py #56

Open ayurahman opened 8 months ago

ayurahman commented 8 months ago

Test_unit_module4_VEP.py only runs correctly when it is in the same directory as module4_VEP_code_only.py. I have leave it in the test folder for now...It only runs when it is placed in the same folder @ in Modules along with module4_VEP_code_only.py. I think we need to set up the linking of Test folder to modules its testing in the Modules directory.

ayurahman commented 8 months ago

I know it got something to do with having init.py in both Modules and Test folders but I have not grasp the concept yet. And we need to set up so that the Test Folder is one level UP to the modules its testing in the Modules directory.

SonjaR-UniMan commented 8 months ago

Add Modules.module4_VEP_code_only.py to complete the path to module can solve the problem, so can be used in our tests from same directory.

ayurahman commented 8 months ago

Brilliant Sonja. Just brilliant.. with adding Modules. in front of the module4_VEP_code_only.py solve the problem entirely.

ayurahman commented 8 months ago

now the test can be run anywhere..great