I am trying to importing
fethcer . py file from
src/fetcher/entrypoints/fethcer.py
to tests/steps/step_impl.py file
how can i import that?
...src.fetcher.entrypoints.fetcher import *
but it's giving me error
from ...src.fetcher.entrypoints.fetcher import * ImportError: attempted relative import with no known parent package
then what is the way?
dependency graph is -
.
├── fetcher.db
├── README.MD
├── src
│ └── fetcher
│ ├── entrypoints
│ │ ├── fetcher.py
│ │ ├── __init__.py
│ │ └── __pycache__
│ │
│ │
│ ├── __init__.py
│ └── __pycache__
│
└── tests
├── acceptance
│ └── fetch_relevant_instrument_list.feature
├── environment.py
└── steps
└── steps_impl.py