From cc12b8bd481ed03cc4dce14c28e4177d48424a5a Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 10 Jan 2020 10:52:16 +0000 Subject: Simplify testing --- Makefile | 2 +- tests/test_providers.py | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index d5437ef..eb3ce93 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ install: ## Install for the current user using the default python command test: venv ## Run unit tests - source $(VENV_DIR)/bin/activate && green -f -vv -a ./tests + source $(VENV_DIR)/bin/activate && green -vv -s 1 -a ./tests clean: ## Clean build dist and egg directories left after install diff --git a/tests/test_providers.py b/tests/test_providers.py index 422fe0f..9d1882d 100644 --- a/tests/test_providers.py +++ b/tests/test_providers.py @@ -185,17 +185,8 @@ class TestProviders(unittest.TestCase): def test_citeseerx_2(self): prov = CiteSeerX(upload=False, verbose=VERBOSE) - url = "http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.101.6521&rep=rep1&type=pdf" - exp = "Everingham_et_al_-_The_2005_Pascal_Visual_Object_Classes_Challenge_2006.pdf" - filename = prov.run(url) - self.assertEqual(exp, os.path.basename(filename)) - - def test_citeseerx_3(self): - prov = CiteSeerX(upload=False, verbose=VERBOSE) - url = ( - "http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.109.4049" - ) - exp = "Brin_Page_-_The_Anatomy_of_a_Large-Scale_Hypertextual_Web_Search_Engine_1998.pdf" + url = "http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.123.7607&rep=rep1&type=pdf" + exp = "Kirkpatrick_Gelatt_Vecchi_-_Optimization_by_Simulated_Annealing_1983.pdf" filename = prov.run(url) self.assertEqual(exp, os.path.basename(filename)) -- cgit v1.2.3