Skip to content

Commit

Permalink
Merge pull request #14 from jlowin/test-no-labels
Browse files Browse the repository at this point in the history
Add test for no labels
  • Loading branch information
jlowin authored Nov 2, 2024
2 parents c0c72de + 55a887d commit f43d32f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@

@flaky(max_runs=3)
class TestLabelingWorkflow:
def test_no_labels_provided(self):
"""Test that when no labels are provided, no labels are assigned"""

pr = PullRequest(
title="Update database connection handling",
body="Improved connection pooling and timeout handling",
files={
"src/database.py": "def connect_db(): pass",
"tests/test_database.py": "def test_connect_db(): pass",
},
author="marvin",
)

# Pass an empty list of labels
result = labeling_workflow(item=pr, labels=[])
assert result == []

def test_bug_with_reproduction_steps(self):
labels = [
Label(
Expand Down

0 comments on commit f43d32f

Please sign in to comment.