Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s
CI / tests (pull_request) Successful in 6m34s
This commit is contained in:
@@ -12,11 +12,11 @@ from review_rules.review_folder import findings_in, review_folder, standing_repo
|
||||
|
||||
class ReviewFolder(unittest.TestCase):
|
||||
def test_keys_a_worktree_under_home_by_its_path_relative_to_home(self):
|
||||
self.assertEqual(review_folder("/h", "/h/code/proj-item-3"), "/h/.local/state/larv-review/code/proj-item-3")
|
||||
self.assertEqual(review_folder("/h", {}, "/h/code/proj-item-3"), "/h/.local/state/build-release/larv-review/code/proj-item-3")
|
||||
|
||||
def test_keys_a_worktree_outside_home_by_its_path_relative_to_the_root(self):
|
||||
self.assertEqual(review_folder("/h", "/srv/proj-item-3"), "/h/.local/state/larv-review/srv/proj-item-3")
|
||||
self.assertEqual(review_folder("/h", "/hx/proj"), "/h/.local/state/larv-review/hx/proj", "a sibling of home that shares its prefix is outside it")
|
||||
self.assertEqual(review_folder("/h", {}, "/srv/proj-item-3"), "/h/.local/state/build-release/larv-review/srv/proj-item-3")
|
||||
self.assertEqual(review_folder("/h", {}, "/hx/proj"), "/h/.local/state/build-release/larv-review/hx/proj", "a sibling of home that shares its prefix is outside it")
|
||||
|
||||
|
||||
class RoundReport(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user