Skip to content

Commit 4fe4738

Browse files
committed
some refactoring
1 parent 0401b1e commit 4fe4738

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cvs/diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ def get_commit_hash_by_ref_name(name: str) -> str:
6363
if is_tag_exist(name):
6464
commit_hash = get_tag_commit_hash(name)
6565
return commit_hash
66-
return None
66+
return None

tests/test_commit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from cvs.modify import add
21
from cvs.commit import *
2+
from cvs.modify import add
33

44

55
def test_commit_file_is_created_after_committing(create_two_files):
@@ -9,7 +9,7 @@ def test_commit_file_is_created_after_committing(create_two_files):
99

1010

1111
def test_commit_file_content_matches_regex(create_two_files,
12-
create_dir_with_two_files):
12+
create_dir_with_two_files):
1313
add('.')
1414
commit_hash = commit('')
1515
commit_file_content = (commits_path / commit_hash).read_text()

tests/test_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from unittest.mock import patch
22

3-
from build.lib.cvs.commit import commit
3+
from cvs.commit import commit
44
from cvs.diff import *
55
from cvs.modify import add
66
from cvs.config import repository_path

0 commit comments

Comments
 (0)