Skip to content

Core tests are failing because of get confused about package vs object name.... #25

@fekad

Description

@fekad

If you integrate any schem based on this template the test/test_config.py will fail with something like:

FAILED tests/test_config.py::test_config_merge[dictionary: merges] - AttributeError: module 'nomad_aitoolkit.schema.mypackage' has no attribute 'dict'
FAILED tests/test_config.py::test_config_merge[list: overrides] - AttributeError: module 'nomad_aitoolkit.schema.mypackage' has no attribute 'dict'
...

I didn't dig deep but it looks like the main issue that the schema package has a object named mypackage which is the same as the name of the (sub)pacakge mypackage.

Quick fix:

  • Rename the submodule to anything else then mypackage.

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