Skip to content

Commit 7bfd31e

Browse files
committedJul 26, 2024
fix lint
1 parent b4f027e commit 7bfd31e

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed
 

‎.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- name: Set up Python 3.10
99
uses: actions/setup-python@v5
1010
with:
11-
python-version: '3.10'
11+
python-version: '3.11'
1212
cache: 'pip'
1313
- name: Install dependencies
1414
run: |

‎tests/test_repo_synchronizer.py

+21-18
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,33 @@
77

88
@pytest.fixture
99
def pulse_config():
10-
return PulseConfig(**{
11-
"userid": "test_user",
12-
"host": "pulse.mozilla.org",
13-
"port": 5671,
14-
"exchange": "exchange/test_user/test",
15-
"routing_key": "#",
16-
"queue": "queue/test_user/test",
17-
"password": "PULSE_PASSWORD",
18-
})
10+
return PulseConfig(
11+
**{
12+
"userid": "test_user",
13+
"host": "pulse.mozilla.org",
14+
"port": 5671,
15+
"exchange": "exchange/test_user/test",
16+
"routing_key": "#",
17+
"queue": "queue/test_user/test",
18+
"password": "PULSE_PASSWORD",
19+
}
20+
)
1921

2022

2123
@pytest.fixture
2224
def mappings():
2325
return {
24-
"myrepo": MappingConfig(**{
25-
"git_repository": "myforge/myrepo.git",
26-
"rules": {
27-
"rule1": {
28-
"branch_pattern": "branch_name",
29-
"mercurial_repository": "myforge/myhgrepo"
30-
31-
}
26+
"myrepo": MappingConfig(
27+
**{
28+
"git_repository": "myforge/myrepo.git",
29+
"rules": {
30+
"rule1": {
31+
"branch_pattern": "branch_name",
32+
"mercurial_repository": "myforge/myhgrepo",
33+
}
34+
},
3235
}
33-
})
36+
)
3437
}
3538

3639

0 commit comments

Comments
 (0)
Failed to load comments.