Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My ptw doesn't "watch" subdirectories #118

Open
andb0t opened this issue Apr 8, 2021 · 0 comments
Open

My ptw doesn't "watch" subdirectories #118

andb0t opened this issue Apr 8, 2021 · 0 comments

Comments

@andb0t
Copy link

andb0t commented Apr 8, 2021

In my python project, I use ptw. My project is structured as follows:

.
├── Pipfile
├── Pipfile.lock
├── README.md
├── call_api.py
├── data
│   └── Iris.csv
├── pytest.ini
├── src
│   ├── __init__.py
│   ├── accept_real_data.py
│   ├── generate_synth_data.py
│   ├── main.py
│   └── return_synth_data.py
└── tests
    ├── __init__.py
    └── src
        ├── __init__.py
        └── test_generate_synth_data.py

When I execute ptw in the main directory, the tests in test_generate_synth_data.py are only executed when I change the call_api.py, but not when I change e.g. the generate_synth_data.py or a test in tests. call_api.py imports all files in src. I thought that ptw would "follow" imports or at least "find" all .py files in subdirectories? Am I missing something?

Edit: I accidently hit ctrl+enter too early, thus posting an empty issue at first.

@andb0t andb0t changed the title ptw doesn ptw doesn't "watch" subdirectories Apr 8, 2021
@andb0t andb0t closed this as completed Apr 8, 2021
@andb0t andb0t reopened this Apr 8, 2021
@andb0t andb0t changed the title ptw doesn't "watch" subdirectories My ptw doesn't "watch" subdirectories Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant