Runs tests (encapsulated in a Test class) and documents results in test_output/logs.txt
Tests that the DOI & OCI APIs are working by testing for doi=‘10.1186/ar4086’.
Tests that reader.py is able to read in .bib files by running a check on the _references.bib and _citations.bib files for @RWebberBurrows2018.
Tests that database commands from ../db_commands.py are working as expected.
Parameters: file (string) – file location for db_commands.py
Tests that Flask App is running as expected.
Uses Selenium Webdriver to check Flask App is running as expected.
- URL (string) – the address where the Flask App is running.
- page_title (string) – the title of the webpage, as it should be defined by <title> tags.
Tests that the literature.py classes are working.
Shows that the basic logic of my Test framework works.
Tests that reader.py is able to read and interpret .pdf files by running a check on the pdf file of references for @RWebberBurrows2018.