diff --git a/corenlp_pywrap/test_using_pytest.py b/corenlp_pywrap/test_using_pytest.py index 4aa9814..c137836 100644 --- a/corenlp_pywrap/test_using_pytest.py +++ b/corenlp_pywrap/test_using_pytest.py @@ -10,14 +10,14 @@ def test_localurl(self): assert '127.0.0.1' in self.cn.url\ or 'localhost' in self.cn.url,\ 'script is pointing to cloud' + assert not self.url.endswith('/'), 'cannot ends with /' def test_no_sentiments(self): assert 'SENTIMENT' not in map( str.upper, self.cn.annotator_full_list),\ 'Sentiment is not supported' - -class Test_basic(): - pass - + def annot_len(self): + assert len(self.annotator_list) == 14 + class Test_serverconnection(): sc_obj = p.CoreNLP() cur_url = sc_obj.url_calc() @@ -27,12 +27,3 @@ class Test_serverconnection(): def test_return_type(self): assert isinstance(self.r, dict), 'arrange function should return a'\ 'requests object which is convertable to dictionary' - - def test_r(self): - assert 'sentences' in self.r, 'value should be there' - assert 'corefs' in self.r, 'value should be there.' - assert len(self.r) == 2, 'should not have more than one value' - - def test_sentences(self): - self.rs = self.r['sentences'] - assert len(self.rs) == 1, 'only one list' \ No newline at end of file