Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase test coverage #38

Merged
merged 1 commit into from
Jul 27, 2021
Merged

Increase test coverage #38

merged 1 commit into from
Jul 27, 2021

Conversation

ssbarnea
Copy link
Member

No description provided.

@ssbarnea ssbarnea requested a review from webknjaz as a code owner July 27, 2021 09:54
@ssbarnea ssbarnea added the bug Something isn't working label Jul 27, 2021
def test_require_collection_preexisting_broken(tmp_path: pathlib.Path) -> None:
"""Check that require_collection raise with broken pre-existing collection."""
runtime = Runtime(isolated=True, project_dir=str(tmp_path))
dest_path: str = runtime.config.collections_path[0] # type: ignore
Copy link
Member Author

@ssbarnea ssbarnea Jul 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@webknjaz (line 381) apparently even with our type hints added to Config class, mypy still believes that any Config.attribute is of type object.

I am not pleased about this dirty trick because it means that this would be expected from consumers of this library too. Any idea on how to avoid that?

@ssbarnea ssbarnea merged commit 9521b49 into main Jul 27, 2021
@ssbarnea ssbarnea deleted the fix/cover branch July 27, 2021 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant