From 51e895790bb4bd70c178961fb0fdacca6dd02f07 Mon Sep 17 00:00:00 2001 From: Yuan Chuan Kee Date: Sun, 16 Sep 2018 15:19:44 +0800 Subject: [PATCH] Restore test for empty string --- tests/test_api.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index 7a20c4c8..2927bfbb 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -9,13 +9,13 @@ def test_parse(client): assert client.post('/parscit/parse', json=data).status_code == 200 -# @pytest.mark.skipif(os.getenv("CI") == 'true', reason="Not running in CI") -# def test_parse_no_content(client): -# data = { -# 'string': "" -# } -# -# assert client.post('/parscit/parse', json=data).status_code == 400 +@pytest.mark.skipif(os.getenv("CI") == 'true', reason="Not running in CI") +def test_parse_no_content(client): + data = { + 'string': "" + } + + assert client.post('/parscit/parse', json=data).status_code == 400 @pytest.mark.skipif(os.getenv("CI") == 'true', reason="Not running in CI") def test_parse_batch(client):