I'm a bit new to running code from the terminal. I am running a test module called test_blbmktdata.py
from the terminal by running:
python -m unittest test_blbmktdata.py
And am getting a error:
File "C:\Users\stacey\Documents\MERLIN\MERLIN - WORKING\dao_all\dao\iotools\tests\test_blbmktdata.py", line 3, in <module>
from dao.iotools.blbmktdata import *
ModuleNotFoundError: No module named 'dao'
The folder dao
does exit:
C:\Users\stacey\Documents\MERLIN\MERLIN - WORKING\dao_all\dao\iotools
Please see below for the beginning of the module (where the problem is).
import unittest
import os.path
from dao.iotools.blbmktdata import *
class TestBlbMktData(unittest.TestCase):
staticName='StaticInstrumentData.csv'
If I run the code from the terminal do I need to change the way I reference imports from different folders?
Thanks