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

Exclude untestable code from coverage #2172

Merged
merged 1 commit into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,6 @@ markers = [
"unit_saas"
]
asyncio_mode = "auto"

[tool.coverage.run]
omit = ["src/fides/api/ctl/migrations/*"]
2 changes: 1 addition & 1 deletion src/fides/api/ops/graph/data_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def get_data_type(value: Any) -> Tuple[Optional[str], bool]:
return data_type, is_array


if __name__ == "__main__":
if __name__ == "__main__": # pragma: no cover
ThomasLaPiana marked this conversation as resolved.
Show resolved Hide resolved
v = DataType.no_op.value
for x in v.__dict__:
print(x)
Expand Down
2 changes: 1 addition & 1 deletion src/fides/api/ops/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ def start_worker() -> None:
)


if __name__ == "__main__":
if __name__ == "__main__": # pragma: no cover
start_worker()