Skip to content

Commit

Permalink
Update tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
venvis authored Apr 11, 2024
1 parent 28858a6 commit 98ea00c
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,39 +86,44 @@ def operative_part_csv(celex)->csv:

csv_store=Writing(celex)
csv_store.to_csv()
if csv_store.to_csv():
assert True
else:
assert False
try:
if csv_store.to_csv():
assert True
except Exception:
assert False
def operative_part_json(celex)->json:
json_store=Writing(celex)
json_store.to_json()
if json_store.to_json():
assert True
else:
try:
if json_store.to_json():
assert True
except Exception:
assert False

def operative_part_txt(celex):
txt_store=Writing(celex)
txt_store.to_txt()
if txt_store.to_txt():
assert True
else:
try:
if txt_store.to_txt():
assert True
except Exception:
assert False

def test_for_operative_part(celex):

count_fail:int
count_pass=0
for id in celex_store:
test_output=Analyzer(celex)
test_instance=test_output()



try:
test_output=Analyzer(celex)
test_instance=test_output()
assert True


except:
except Exception:
assert False



0 comments on commit 98ea00c

Please sign in to comment.