Skip to content

Commit

Permalink
run pre
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcmarrow authored and Megan Wilhite committed Aug 3, 2023
1 parent e60abda commit c9bc453
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion salt/utils/gitfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def __init__(
self.role,
getattr(self, "base", ""),
getattr(self, "branch", ""),
target
target,
]
)
# We loaded this data from yaml configuration files, so, its safe
Expand Down
7 changes: 5 additions & 2 deletions tests/unit/utils/test_gitfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,14 @@ def test_update_by_id_and_name(self):
self.assertFalse(self.main_class.remotes[1].fetched)

def test_full_id(self):
self.assertEqual(self.main_class.remotes[0].full_id(), "-file://repo1.git---gitfs-master--")
self.assertEqual(
self.main_class.remotes[0].full_id(), "-file://repo1.git---gitfs-master--"
)

def test_full_id_with_name(self):
self.assertEqual(
self.main_class.remotes[1].full_id(), "repo2-file://repo2.git---gitfs-master--"
self.main_class.remotes[1].full_id(),
"repo2-file://repo2.git---gitfs-master--",
)

def test_get_cachedir_basename(self):
Expand Down

0 comments on commit c9bc453

Please sign in to comment.