Skip to content

Commit eefdef5

Browse files
committed
Minor fixes.
1 parent e4bd801 commit eefdef5

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Tests
22
on:
33
push:
44
branches:
5-
- main
5+
- master
66
pull_request:
77
branches:
8-
- main
8+
- master
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: '3.12'
25+
python-version: '3.11'
2626
- name: Install dependencies
2727
run: pip install -r requirements.txt
2828
- name: Run tests and collect coverage

publications/tests/tests_live.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ def setUp(self):
4545
self.selenium.find_element(By.XPATH, '//input[@value="Log in"]').click()
4646

4747

48-
def tearDown(self):
49-
self.selenium.close()
50-
51-
5248
def test_import_bibtex(self):
5349
count = Publication.objects.count()
5450

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
coverage==7.5.1
2+
django==5.1.2
13
pillow==10.3.0
4+
selenium==4.24.0

runtests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import sys
55

6-
os.environ['DJANGO_SETTINGS_MODULE'] = 'publications.test_settings'
6+
os.environ['DJANGO_SETTINGS_MODULE'] = 'publications.settings.test'
77

88
import django
99
from django.conf import settings
@@ -16,7 +16,7 @@ def main():
1616
TestRunner = get_runner(settings)
1717
test_runner = TestRunner()
1818

19-
failures = test_runner.run_tests(['publications.settings.test'])
19+
failures = test_runner.run_tests(['publications.tests'])
2020

2121
sys.exit(bool(failures))
2222

0 commit comments

Comments
 (0)