瀏覽代碼

Fix test type

Signed-off-by: Colin Hebert <[email protected]>
Colin Hebert 8 年之前
父節點
當前提交
9d78258b44
共有 1 個文件被更改,包括 1 次插入2 次删除
  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):