diff --git a/generator.py b/generator.py index e69de29..b658559 100644 --- a/generator.py +++ b/generator.py @@ -0,0 +1,3 @@ + +def generate(encoding): + pass # should return a formatted string which reads the input diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..738827b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +beautifulsoup==4.12.3 +selenium==4.24.0 \ No newline at end of file diff --git a/test_parser.py b/test_parser.py index 52ad149..91e40a9 100644 --- a/test_parser.py +++ b/test_parser.py @@ -1,11 +1,19 @@ from scraper import * import pytest from problem_parser import * +from generator import generate + +def setup_testcases(p): + generate(check_all(p.input)) + for test in p.tests: + test.input + def test_scraper(): p = Problem("1980","G") try: p.input + except: pytest.fail("Scraper could not fetch")