Skip to content

Commit

Permalink
Fixed some error messages.
Browse files Browse the repository at this point in the history
Some errors were improper
  • Loading branch information
ciorceri committed Sep 9, 2019
1 parent 4ddf022 commit 596c347
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion edi.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ def crosscheck_logs(operator_instances, rules, band_nr):
except ValueError as e:
qso1.cc_confirmed = False
qso1.cc_error = e
continue
break

if distance is None:
continue
Expand Down
8 changes: 3 additions & 5 deletions test_edi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,14 +1182,13 @@ def test_crosscheck_logs(self, mck_isfile):
"""
mck_isfile.return_value = True
expected_result = ['True-[]-1',
'True-Mode mismatch-1',
'True-[]-1',
'False-Mode mismatch-None',
'True-[]-1',
'False-No qso found on YO5CCC log-None',
'False-Qso field <date> has an invalid value (1308)-None',
'False-No log from YO5EEE-None',
'False-No log for this band from YO5FFF-None',
'False-No qso found on YO5AAA log-None',
'True-[]-1',
'False-Mode mismatch-None',
'True-[]-1',
'False-Qso already confirmed-None',
'None-[]-None']
Expand Down Expand Up @@ -1241,7 +1240,6 @@ def test_crosscheck_logs(self, mck_isfile):
[QSORecords;1]
130803;1200;YO5AAA;2;59;001;59;002;;KN16SS;2;;;;
130803;1200;YO5AAA;6;59;001;59;002;;KN16SS;2;;;;
130803;1201;YO5BBB;6;59;002;59;002;;KN16SS;5;;;;
130803;1200;YO5AAA;6;59;001;59;002;;KN16SS;3;;;;
"""
op3 = edi.Operator('YO5CCC') # unfair player
Expand Down

0 comments on commit 596c347

Please sign in to comment.