This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
import argparse,json,sys,unittest
|
||||
from pathlib import Path
|
||||
P=argparse.ArgumentParser();P.add_argument("--root",type=Path,required=True);R=P.parse_args().root;sys.path.insert(0,str(R/"tools"))
|
||||
import phase10dv_package_stat_runner as m # noqa:E402
|
||||
class Tests(unittest.TestCase):
|
||||
def test_tracked_record_is_inactive(self):
|
||||
v=json.loads((R/"manifests/retroarch/phase-1.0dv-inactive-package-stat-runner.json").read_text())
|
||||
with self.assertRaises(m.Error):m.validate(v,v,0)
|
||||
def test_record_size(self):self.assertEqual(m.REC.size,72)
|
||||
if __name__=="__main__":unittest.main(argv=[__file__])
|
||||
Reference in New Issue
Block a user