diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_stats.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_stats.py b/tests/test_stats.py index f732054..f45a0cd 100644 --- a/tests/test_stats.py +++ b/tests/test_stats.py @@ -31,6 +31,11 @@ class Stats(unittest.TestCase): self.assertIn(key, st) self.assertIsInstance(st["cpu"], int) + def test_to_install_counts_like_keystone(self): + doc = {"slackware": {"upgrade": [1, 2], "new": [3], "removed": [4]}, + "upgrade": [5], "build": [6, 7], "upstream": [8], "apps": [9]} + self.assertEqual(stats._to_install(doc), 5) + def test_build_discovers_stats(self): from deckit.modules import build names = [m["name"] for m in build({"modules": {}}).names()] |
