Skip to content

[Testing] Add Pytest.ini file in Python Directory for Local Pytest Configuration #2539

Closed
@BethanyG

Description

@BethanyG

Since we're using a custom pytest.marks.task(taskno) for our Concept exercise tests, we need to have a way for CLI users to register them. Otherwise, PyTest complains for every test locally (see issue #2536).

The most expedient way to do this is to provide a pytest.ini file as part of the python exercise directory.
If we'd rather not do it in the main exercism/python folder, we could add it into exercism/python/exercise or exercism/python/exercises/concept.
Additionally, we should update the documentation to show users how to register or ignore the marks themselves.

The ini file should include:

[pytest]
markers =
    task: A concept exercise task.

Metadata

Metadata

Assignees

Labels

improve documentation 💖specific improvements to documentation on the track, the exercises, or the repo.x:action/improveImprove existing functionality/contentx:size/smallSmall amount of workx:status/claimedSomeone is working on this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions