Skip to content

Commit

Permalink
linting tests per flake8 specifications
Browse files Browse the repository at this point in the history
Signed-off-by: mjgaughan <[email protected]>
  • Loading branch information
mjgaughan committed Jul 2, 2024
1 parent a2561b5 commit 0704cd9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ def test_sync(self):
# Cleanup
shutil.rmtree(editable_path)
shutil.rmtree(new_path)

def test_tag_removal_sync(self):
"""Test sync process for tag removal"""
origin_path = os.path.join(self.tmp_repo_path, 'gittest')
Expand All @@ -1811,11 +1811,11 @@ def test_tag_removal_sync(self):
repo = GitRepository.clone(editable_path, new_path)
repo.sync()

#Add a tag 'v.0.0-lw' to the refs and check that it exists
# Add a tag 'v.0.0-lw' to the refs and check that it exists
cmd = ['git', 'tag', 'v.0.0-lw']
subprocess.check_output(cmd, stderr=subprocess.STDOUT,
cwd=editable_path, env={'LANG': 'C'})

new_commits = repo.sync()
self.assertEqual(len(new_commits), 0)

Expand All @@ -1827,11 +1827,11 @@ def test_tag_removal_sync(self):
refs.sort()
self.assertListEqual(refs, expected)

#Delete the tag 'v.0.0-lw' and check that it has been deleted from refs
# Delete the tag 'v.0.0-lw' and check that it has been deleted from refs
cmd = ['git', 'tag', '-d', 'v.0.0-lw']
subprocess.check_output(cmd, stderr=subprocess.STDOUT,
cwd=editable_path, env={'LANG': 'C'})

new_commits = repo.sync()
self.assertEqual(len(new_commits), 0)

Expand All @@ -1841,10 +1841,10 @@ def test_tag_removal_sync(self):
refs = [ref for ref in discover_refs(new_path).keys()]
refs.sort()
self.assertListEqual(refs, expected)
#Cleanup
# Cleanup
shutil.rmtree(editable_path)
shutil.rmtree(new_path)

def test_sync_from_empty_repos(self):
"""Test sync process on empty repositories"""

Expand Down

0 comments on commit 0704cd9

Please sign in to comment.