Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaqiWang18 committed Sep 20, 2023
1 parent 2e60bd1 commit 8314a47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/semesterly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ jobs:
- run: npm run lint
- run: npm run test

- name: Run Backend Tests
uses: GabrielBB/xvfb-action@v1
- name: Run Backend Test
env:
NODE_ENV: production
host: jhu.sem.ly
DB_PORT: ${{ job.services.postgres.ports[5432] }}
with:
run: python manage.py test
run: |
sudo apt-get update
udo apt-get --only-upgrade install google-chrome-stable
python manage.py test
- name: Run docs
run: make html -C docs
5 changes: 1 addition & 4 deletions semesterly/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.remote.webelement import WebElement
from webdriver_manager.chrome import ChromeDriverManager
from social_django.models import UserSocialAuth

from student.models import PersonalTimetable
Expand Down Expand Up @@ -86,9 +85,7 @@ def setUpClass(cls):
def setUp(self):
self.img_dir = os.path.dirname(os.path.realpath(__file__)) + "/test_failures"
self.init_screenshot_dir()
self.driver = webdriver.Chrome(
ChromeDriverManager().install(), options=self.chrome_options
)
self.driver = webdriver.Chrome(options=self.chrome_options)
sem = get_current_semesters("jhu")[0]
sem, _ = Semester.objects.update_or_create(name=sem["name"], year=sem["year"])
for section in Section.objects.filter(
Expand Down

0 comments on commit 8314a47

Please sign in to comment.