Skip to content

ModuleNotFoundError when running pytestΒ #1

@grggls

Description

@grggls

Issue Overview

When running pytest from anywhere in the project, "ModuleNotFound" errors are thrown for each of the local packages.

Describe your environment

I'm using codespaces

Steps to Reproduce

  1. Start codespaces in this repository
  2. Install pytest in the running container
  3. Run pytest from anywhere in the project
  4. Note the errors for each package we're trying to import in each of the test_ files in the test directory:
ERROR tests/test_age_slowest_race.py
ERROR tests/test_arg_checker.py
ERROR tests/test_calculator.py
ERROR tests/test_html2markdown.py
ERROR tests/test_linkedin_checker.py
ERROR tests/test_medals.py
ERROR tests/test_pairwise_offset.py

Expected Behavior

The modules are imported and pytest runs

Current Behavior

The modules are not loaded and the tests never get to run.

Related Issues

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions