Browse Source

Fix test type

Signed-off-by: Colin Hebert <[email protected]>
Colin Hebert 8 năm trước cách đây
mục cha
commit
9d78258b44
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      tests/unit/config/config_test.py

+ 1 - 2
tests/unit/config/config_test.py

@@ -849,8 +849,7 @@ class ConfigTest(unittest.TestCase):
         ).services[0]
         assert 'labels' in service['build']
         assert 'label1' in service['build']['labels']
-        assert isinstance(service['build']['labels']['label1'], str)
-        assert service['build']['labels']['label1'] == '42'
+        assert service['build']['labels']['label1'] == 42
         assert service['build']['labels']['label2'] == 'foobar'
 
     def test_build_args_allow_empty_properties(self):