Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam committed Mar 20, 2022
1 parent f2e8054 commit 6ed29e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
restore-keys: ${{ runner.os }}-pip
- run: pip install -e '.[test]'
- run: coverage run -m pytest
- run: coverage report && coverage xml
- run: coverage report -m && coverage xml
- name: Report coverage
uses: codecov/codecov-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion abcattrs/type_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_resolvable_type_hints(cls: type) -> dict[str, type]:
except NameError as exception:
name = get_name_error_name(exception)
local_ns[name] = ForwardRef(name) # type: ignore[assignment]
else:
else: # pragma: no cover
raise MaxIterations(
f"Exceeded {max_iterations} iterations trying to resolve type hints of "
f"{cls.__module__}.{cls.__qualname__}."
Expand Down
1 change: 1 addition & 0 deletions tests/test_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
def test_base_class_saves_attributes() -> None:
@abstractattrs
class A(abc.ABC):
bar: int
foo: Abstract[int]

assert not {"foo"} ^ A.__abstract_attributes__ # type: ignore[attr-defined]
Expand Down

0 comments on commit 6ed29e2

Please sign in to comment.