Skip to content

Find Missing Modules should import rather than append to prioritize local module #675

@jonespm

Description

@jonespm

Describe the bug

When running the test find_missing_modules.py, it will fail if a new module is added locally while an older version of CanvasAPI is installed in the path that doesn't have this. This is because the local path has the lower priority. I don't think this will be a problem with Github action

To Reproduce

Steps to reproduce the behavior:

  • Install a version of CanvasAPI globally or in the virtual environment
  • Add a new module, also import it in another module as required.
  • Attempt to run the scripts/find_missing_modules.py

Script should pass if done correctly. It fails. If the global canvasapi is removed this test does pass.

Expected behavior

The local canvasapi should always be preferred by this test

sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions