Skip to content

Commit b8d2303

Browse files
authored
Merge pull request #5016 from broadinstitute/python-3-11-compatibility
run unit tests on updated python version
2 parents 465aa46 + 055b8cb commit b8d2303

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
python-version: [3.9]
24+
python-version: [3.9, 3.11]
2525

2626
services:
2727
# Label used to access the service container

requirements-dev.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-c requirements.txt # use the generated reqs as a constraint
2-
coverage<5.2
2+
coverage<6.6
33
django-compressor
44
django-debug-toolbar # https://github.com/jazzband/django-debug-toolbar
55
mock # mock objects for unit tests

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ charset-normalizer==3.0.1
2020
# requests
2121
click==8.1.3
2222
# via pip-tools
23-
coverage==5.1
23+
coverage==6.5
2424
# via -r requirements-dev.in
2525
django==4.2.24
2626
# via

seqr/utils/search/elasticsearch/es_utils_tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ def replace_json(self, url, *args, **kwargs):
3939
def call_request_json(self, index=-1):
4040
return json.loads(self.calls[index].request.body)
4141

42+
def activate(self, func):
43+
def wrapper(*args, **kwargs):
44+
with self:
45+
return func(*args, **kwargs)
46+
return wrapper
4247

4348
urllib3_responses = Urllib3Responses()
4449

0 commit comments

Comments
 (0)