Example #1
0
 def test_env_var_is_set(self, p_env):
     p_env({'GITHUB_SHA': 'asdf'})
     main.Status(argv=[], parse=False)
     assert conf['env']['GITHUB_SHA'] == 'asdf'
Example #2
0
 def test_combined_quotes_are_removed(self, p_env):
     p_env({'GITHUB_SHA': """'"asdf"'"""})
     main.Status(argv=[], parse=False)
     assert conf['env']['GITHUB_SHA'] == 'asdf'
Example #3
0
 def test_env_vars_are_emtpy(self, p_env):
     main.Status(argv=[], parse=False)
     assert conf['env'] == {}
Example #4
0
 def test_single_quotes_are_removed(self, p_env):
     p_env({'GITHUB_SHA': "'asdf'"})
     main.Status(argv=[], parse=False)
     assert conf['env']['GITHUB_SHA'] == 'asdf'