Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsbalu committed Aug 25, 2016
1 parent 92ff802 commit 03e8d81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class TestEConLog():

def setup_method(self, method):
self.ecl = econlog.EConLog("user", "passwd")
self.ecl.session_id = "12345"

def test_parse_jquery(self):
original_content = ("$('#enaploTree').html("
Expand Down Expand Up @@ -162,6 +163,7 @@ def test_get_log_entry_on_date(self):
dd = datetime.date(1988, 02, 05)
dd_srt = dd.strftime("%Y.%m.%d.")
ecl = econlog.EConLog("user", "passwd")
ecl.session_id = "12345"
ecl.files = {"123": ["456"]}
with requests_mock.mock() as m:
m.get('https://enaplo.e-epites.hu/enaplo/ajax?method=bejegyzes_karton_load&datum=%s&aktaid=%s&naploid=%s' % (dd_srt, "123", "456"), text="log_data")
Expand Down

0 comments on commit 03e8d81

Please sign in to comment.