Im trying to build in testing, but am having troub...
# ask-community
a
Im trying to build in testing, but am having trouble importing the tasks. Also, is this a proper setup?
Copy code
from ... import ??

def test_say_hello():
    assert say_hello() == True
Copy code
PostProcessingTemplate/
  PostProcessingFlow.py
  PostProcessingTasks.py
  tests/
    test_PostProcessingTasks.py
j
Hi @Aaron Y could you give more details? I’m unsure of what you are attempting to do here. That setup looks correct where you would import your tasks from that PostProcessingTasks
a
the import isn't working
j
This isn’t anything Prefect related but more of a Python import pattern. I recommend reading up on how python handles imports like these πŸ™‚ https://stackoverflow.com/questions/16981921/relative-imports-in-python-3
βœ… 1
a
@josh idk man, still not working πŸ˜•
actually, got it
getting this error now?
j
Call
your_task.run()
to run the task directly πŸ™‚
a
so simple πŸ˜‚ thank you