bugfix random function in config variables run many times

This commit is contained in:
hluguoj
2019-02-21 20:13:53 +08:00
parent 2dae1e4dda
commit fb091079a4
6 changed files with 49 additions and 17 deletions

View File

@@ -394,8 +394,8 @@ class TestSuiteLoader(unittest.TestCase):
testsuites_list[0]["config"]["name"]
)
self.assertEqual(
{'device_sn': '${gen_random_string(15)}'},
testsuites_list[0]["config"]["variables"]
'${gen_random_string(15)}',
testsuites_list[0]["config"]["variables"]['device_sn']
)
self.assertIn(
"create user 1000 and check result.",