Skip to content

Commit

Permalink
Update name in test script.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb30 committed Oct 29, 2015
1 parent 91ed0bc commit 057927a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions petrarch2/tests/test_petrarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
from petrarch2 import PETRtree as ptree


config = petrarch.utilities._get_data('data/config/', 'PETR_config.ini')
config = petrarch2.utilities._get_data('data/config/', 'PETR_config.ini')
print("reading config")
petrarch.PETRreader.parse_Config(config)
petrarch2.PETRreader.parse_Config(config)
print("reading dicts")
petrarch.read_dictionaries()
petrarch2.read_dictionaries()




def test_version():
assert petrarch.get_version() == "1.0.0"
assert petrarch2.get_version() == "1.0.0"


def test_read():
Expand Down Expand Up @@ -163,7 +163,7 @@ def test_simple():
dict = {u'test123': {u'sents': {u'0': {u'content': text, u'parsed': parsed}},
u'meta': {u'date': u'20010101'}}}

return_dict = petrarch.do_coding(dict,None)
return_dict = petrarch2.do_coding(dict,None)
print(return_dict)
assert return_dict['test123']['sents']['0']['events'] == [('DEU','FRA','192')]

Expand All @@ -176,7 +176,7 @@ def test_simple2():
dict = {u'test123': {u'sents': {u'0': {u'content': text, u'parsed': parsed}},
u'meta': {u'date': u'20010101'}}}

return_dict = petrarch.do_coding(dict,None)
return_dict = petrarch2.do_coding(dict,None)
print(return_dict)
assert return_dict['test123']['sents']['0']['events'] == [('DEU','FRA','173')]

Expand Down Expand Up @@ -208,7 +208,7 @@ def test_complex1():

dict = {u'test123': {u'sents': {u'0': {u'content': text, u'parsed': parsed}},
u'meta': {u'date': u'20010101'}}}
return_dict = petrarch.do_coding(dict,None)
return_dict = petrarch2.do_coding(dict,None)
print(return_dict)
assert return_dict['test123']['sents']['0']['events'] == [('TUNJUD','NGAEDU','173')]

Expand Down

0 comments on commit 057927a

Please sign in to comment.