Skip to content

ImportError while loading conftest #6

@knlklabacka

Description

@knlklabacka

I'm having an issue with running tests. Below is the error when running > pytest test/test_login.py

I have compared my files and directory structure to the repo and cannot see what I'm missing.

ImportError while loading conftest 'D:\Documents\Python\PacktFastAPI\planner\tests\conftest.py'.
tests\conftest.py:5: in
from main import app
E ModuleNotFoundError: No module named 'main'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions