Skip to content

Commit

Permalink
Merge pull request #127 from pebenito/restructure-tests
Browse files Browse the repository at this point in the history
Restructure tests and update to use pytest fixtures.
  • Loading branch information
pebenito authored Apr 19, 2024
2 parents 4c205e4 + 0856100 commit 0f7a123
Show file tree
Hide file tree
Showing 241 changed files with 13,388 additions and 14,930 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module = ['networkx.*',
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ['tests-gui.*']
module = ['tests.gui.*']
# PyQt has many Optional[] returns since Qt doesn't throw exceptions. Fixing
# this with type narrowing asserts in the code would add no value as the
# test case would fail either way.
Expand Down
2 changes: 1 addition & 1 deletion seinfo
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ try:

components.append(("Validatetrans", vtq, lambda x: x.statement()))

if p.target_platform == "xen":
if p.target_platform == setools.PolicyTarget.xen:
if args.ioportconquery or args.all:
xiopq = setools.IoportconQuery(p)
components.append(("Ioportcon", xiopq, lambda x: x.statement()))
Expand Down
2 changes: 1 addition & 1 deletion setools/constraintquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _match_expr(self, expr: frozenset[policyrep.User] | frozenset[policyrep.Role
if indirect:
obj = set()
for item in expr:
obj.update(item.expand()) # type: ignore[union-attr]
obj.update(item.expand())
else:
obj = expr

Expand Down
Loading

0 comments on commit 0f7a123

Please sign in to comment.