mirror of
https://github.com/kiviktnm/decman.git
synced 2026-09-19 12:08:28 +00:00
Fix test that occasionally fails due to set ordering being indeterminate
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring
|
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
from decman import Module, UserPackage
|
||||||
from decman.lib import Source, Store
|
from decman.lib import Source, Store
|
||||||
from decman import UserPackage, Module
|
|
||||||
|
|
||||||
|
|
||||||
class ExistingTestModule(Module):
|
class ExistingTestModule(Module):
|
||||||
@@ -306,7 +307,6 @@ class TestModuleUserServices(unittest.TestCase):
|
|||||||
|
|
||||||
|
|
||||||
def test_user_units_to_enable(self):
|
def test_user_units_to_enable(self):
|
||||||
self.assertDictEqual(
|
result = self.source.user_units_to_enable(self.store)
|
||||||
self.source.user_units_to_enable(self.store),
|
self.assertEqual(len(result), 1)
|
||||||
{"user": ["foo.service", "bar.service"]},
|
self.assertCountEqual(result["user"], ["foo.service", "bar.service"])
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user