From 54adc8ab5f467a68e181ec0199192feeb2934325 Mon Sep 17 00:00:00 2001 From: minto Date: Sat, 24 Mar 2018 21:01:18 +0100 Subject: [PATCH] update test --- tests/test_base.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/test_base.py b/tests/test_base.py index f151a9b..44a88cd 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -1,5 +1,13 @@ -from models import City - - def test_pytsp(client): - pass + assert client.get('/').status_code == 200 + for algorithm in ( + 'nearest_neighbor', + 'nearest_insertion', + 'farthest_insertion', + 'cheapest_insertion', + 'pairwise_exchange', + 'node_insertion', + 'edge_insertion', + 'ILP_solver' + ): + client.post('/' + algorithm)