test optimizations

This commit is contained in:
Kelly Brazil committed 2022-09-23 16:30:43 -07:00
1 parent ae9c1746f1
commit 45fae976f0
3 files changed
+12 -15

No files matched your search

+4 -5
View File
@@ -20,11 +20,10 @@ class MyTests(unittest.TestCase):
}
for file, filepaths in fixtures.items():
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as f:
cls.f_in[file] = f.read()
with open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as f:
cls.f_json[file] = json.loads(f.read())
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as a, \
open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as b:
cls.f_in[file] = a.read()
cls.f_json[file] = json.loads(b.read())
def test_foo_nodata(self):
+4 -5
View File
@@ -23,11 +23,10 @@ class MyTests(unittest.TestCase):
}
for file, filepaths in fixtures.items():
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as f:
cls.f_in[file] = f.read()
with open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as f:
cls.f_json[file] = json.loads(f.read())
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as a, \
open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as b:
cls.f_in[file] = a.read()
cls.f_json[file] = json.loads(b.read())
def test_foo_s_nodata(self):
+4 -5
View File
@@ -20,11 +20,10 @@ class MyTests(unittest.TestCase):
}
for file, filepaths in fixtures.items():
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as f:
cls.f_in[file] = f.read()
with open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as f:
cls.f_json[file] = json.loads(f.read())
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as a, \
open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as b:
cls.f_in[file] = a.read()
cls.f_json[file] = json.loads(b.read())
def test_proc_buddyinfo_nodata(self):