Skip to content

Conversation

LucasSantos27
Copy link
Collaborator

Increase to 49%

@LucasSantos27 LucasSantos27 self-assigned this Oct 1, 2025
"""Test is_exclusively_build_issue with known issue with test."""
result = is_exclusively_build_issue("issue123", 1, "test123")
assert result is False

Choose a reason for hiding this comment

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

here isn't worth to add also a test for a unknown issue with valid test id?

Suggested change
def test_is_exclusively_build_issue_with_unknown_issue_with_test(self):
"""Test is_exclusively_build_issue with unknown issue but with test."""
result = is_exclusively_build_issue(None, None, "test123")
assert result is False

issue_id=None, issue_version=None, incident_test_id="test123"
)
assert result is False

Copy link

@gustavobtflores gustavobtflores Oct 21, 2025

Choose a reason for hiding this comment

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

almost same here, but with (None, None, None)

Suggested change
def test_is_exclusively_test_issue_with_unknown_issue_no_test(self):
"""Test is_exclusively_test_issue with unknown issue and no test."""
result = is_exclusively_test_issue(
issue_id=None, issue_version=None, incident_test_id=None
)
assert result is False

Comment on lines +237 to +241
def test_filter_data():
"""Test filter data for testing."""
return {
"path": "test.other",
"status": "PASS",

Choose a reason for hiding this comment

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

maybe it’s a nit, but wouldn’t it be better to avoid naming the fixture functions with the test_ prefix so pytest doesn’t collect them as tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants