File tree 4 files changed +8
-9
lines changed
4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ name: Tests
2
2
on :
3
3
push :
4
4
branches :
5
- - main
5
+ - master
6
6
pull_request :
7
7
branches :
8
- - main
8
+ - master
9
9
jobs :
10
10
test :
11
11
runs-on : ubuntu-latest
22
22
- name : Set up Python
23
23
uses : actions/setup-python@v5
24
24
with :
25
- python-version : ' 3.12 '
25
+ python-version : ' 3.11 '
26
26
- name : Install dependencies
27
27
run : pip install -r requirements.txt
28
28
- name : Run tests and collect coverage
Original file line number Diff line number Diff line change @@ -45,10 +45,6 @@ def setUp(self):
45
45
self .selenium .find_element (By .XPATH , '//input[@value="Log in"]' ).click ()
46
46
47
47
48
- def tearDown (self ):
49
- self .selenium .close ()
50
-
51
-
52
48
def test_import_bibtex (self ):
53
49
count = Publication .objects .count ()
54
50
Original file line number Diff line number Diff line change
1
+ coverage == 7.5.1
2
+ django == 5.1.2
1
3
pillow == 10.3.0
4
+ selenium == 4.24.0
Original file line number Diff line number Diff line change 3
3
import os
4
4
import sys
5
5
6
- os .environ ['DJANGO_SETTINGS_MODULE' ] = 'publications.test_settings '
6
+ os .environ ['DJANGO_SETTINGS_MODULE' ] = 'publications.settings.test '
7
7
8
8
import django
9
9
from django .conf import settings
@@ -16,7 +16,7 @@ def main():
16
16
TestRunner = get_runner (settings )
17
17
test_runner = TestRunner ()
18
18
19
- failures = test_runner .run_tests (['publications.settings.test ' ])
19
+ failures = test_runner .run_tests (['publications.tests ' ])
20
20
21
21
sys .exit (bool (failures ))
22
22
You can’t perform that action at this time.
0 commit comments