Skip to content

Production code is not being tested #394

Open
@Zaczero

Description

@Zaczero

Describe the bug

I've just noticed that you create a different StacApi app just for tests -- stac_fastapi/tests/conftest.py. This is surprising as the production code is not actually tested: because of that, during manual(deployment) testing of enum queryables they work fine, but because of different test configuration they don't. This is dangerous as the production code is left untested and it's a matter of luck that tests use the same code as production. I'll try to update the tests to resolve the issue, but I encourage you to discard this method of testing in favor of a single app instance for both production and tests.

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