Skip to content

Commit

Permalink
reactivating test which was timing out, fixes issue #537
Browse files Browse the repository at this point in the history
  • Loading branch information
proccaserra committed Feb 23, 2024
1 parent dfad022 commit a7f2836
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/convert/test_magetab2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ def setUp(self):
self._magetab_data_dir = utils.MAGETAB_DATA_DIR
self._tmp_dir = tempfile.mkdtemp()

# def tearDown(self):
# shutil.rmtree(self._tmp_dir)
def tearDown(self):
shutil.rmtree(self._tmp_dir)

def test_magetab2json_convert_e_mexp_31(self):
actual_json = magetab2json.convert(os.path.join(self._magetab_data_dir, 'E-MEXP-31.idf.txt'),)
with open(os.path.join(self._tmp_dir, 'isa.json'), 'w') as out_fp:
json.dump(actual_json, out_fp)
# with open(os.path.join(self._tmp_dir, 'isa.json')) as actual_json:
# report = isajson.validate(actual_json)
# print(report['errors'])
# self.assertEqual(len(report['errors']), 0)
with open(os.path.join(self._tmp_dir, 'isa.json')) as actual_json:
report = isajson.validate(actual_json)
print(report['errors'])
self.assertEqual(len(report['errors']), 0)

0 comments on commit a7f2836

Please sign in to comment.