mirror of
https://github.com/stijndcl/didier.git
synced 2026-06-30 01:49:56 +02:00
Fix test import issue
This commit is contained in:
parent
90d0687513
commit
cb72774a7a
14 changed files with 5 additions and 5 deletions
0
tests/test_functions/test_scrapers/__init__.py
Normal file
0
tests/test_functions/test_scrapers/__init__.py
Normal file
13
tests/test_functions/test_scrapers/test_sporza.py
Normal file
13
tests/test_functions/test_scrapers/test_sporza.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from functions.scrapers import sporza
|
||||
import unittest
|
||||
|
||||
|
||||
class TestSporzaScraper(unittest.TestCase):
|
||||
def test_find_matchweek(self):
|
||||
"""
|
||||
This tests if the structure of the HTML is still what we expect it to be,
|
||||
as Sporza changes it from time to time.
|
||||
"""
|
||||
# This will throw an error if the argument was not a proper integer
|
||||
week = int(sporza.getMatchweek())
|
||||
self.assertGreater(week, 0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue