Skip to content

Commit 892312f

Browse files
Ola AustineOla Austine
authored andcommitted
fix: fixing tests to use the right mocker and the github workflows
1 parent 0011eba commit 892312f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.11, 3.13]
14+
python-version: [3.13]
1515

1616
steps:
1717
- name: Checkout

src/tests/linear/test_linear.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ def test_get_ticket_if_it_exists_success(mock_post):
7878

7979
service = LinearService.__new__(LinearService)
8080
service._config = mock_config
81-
service._linear_api_key = mock_config.linear_api_key
82-
service._team_id_str = mock_config.team_id
83-
service._api_url = mock_config.linear_api_url
84-
service._headers = {
81+
service.linear_api_key = mock_config.linear_api_key
82+
service.team_name = mock_config.team_id
83+
service.api_url = mock_config.linear_api_url
84+
service.headers = {
8585
"Content-Type": "application/json",
8686
"Authorization": mock_config.linear_api_key,
8787
}
88-
service._team_id = "team-uuid"
88+
service.team_id = "team-uuid"
8989
tickets = LinearService.get_ticket_if_it_exists(service, "Some Issue")
9090
assert tickets == [{"identifier": "ISSUE-1"}]
9191

0 commit comments

Comments
 (0)