예제 #1
0
 def test_repo_file_in_diff_branch(self):
     """Check for file exist in specific branch or not."""
     file_name = 'pom.xml'
     branch_name = 'dev-test-branch'
     result = fetch_file_from_github(
         self.__url, file_name, branch=branch_name)
     assert not bool(
         {'filename', 'filepath', 'content'}.symmetric_difference(result[0].keys()))
 def test_repo_with_file_exist(self):
     """Check wheather file exist in github repo."""
     file_name = 'pom.xml'
     result = fetch_file_from_github(self.__url, file_name)
     assert not bool({'filename', 'filepath', 'content'
                      }.symmetric_difference(result[0].keys()))