I wanna do some unit testing on my ops - if `somef...
# ask-community
k
I wanna do some unit testing on my ops - if
somefolder/file.py
contains my graph (including the
ops
), how can I import those into my testing folder?
dagster bot responded by community 1
z
What have you tried so far? What errors have you gotten when you've tried those things? These are elements that are really crucial to include in a support question in order to receive quick and accurate responses. Generally speaking you should be able to do
Copy code
from somefolder import file
in your tests, if
somefolder
is at the project root and your test folder is also in the project root. You might need a
__init__.py
file also within
somefolder
though if you're running into import errors.