Exemplo n.º 1
0
 def test_show_definition_non_dict(self):
     definition = "something that doesn't matter"
     testjob = models.TestJob(
         definition=definition
     )
     display = yaml.load(testjob.show_definition)
     self.assertEqual(definition, display)
Exemplo n.º 2
0
 def test_show_definition_hides_secrets(self):
     definition = "foo: bar\nsecrets:\n  baz: qux\n"
     testjob = models.TestJob(
         definition=definition
     )
     display = yaml.load(testjob.show_definition)
     self.assertNotEqual('qux', display['secrets']['baz'])