Skip to content

Commit b203340

Browse files
committed
Fix condition check for current remote name in rename method
1 parent f826875 commit b203340

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/test_commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_read_commit(barerepo):
5858
assert 'c2792cfa289ae6321ecf2cd5806c2194b0fd070c' == parents[0].id
5959
assert commit.message_encoding is None
6060
assert commit.message == (
61-
'Second test data commit.\n\n' 'This commit has some additional text.\n'
61+
'Second test data commit.\n\nThis commit has some additional text.\n'
6262
)
6363
commit_time = 1288481576
6464
assert commit_time == commit.commit_time

test/test_merge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ def test_merge_mergeheads(mergerepo):
318318
assert mergerepo.listall_mergeheads() == [pygit2.Oid(hex=branch_head_hex)]
319319

320320
mergerepo.state_cleanup()
321-
assert (
322-
mergerepo.listall_mergeheads() == []
323-
), 'state_cleanup() should wipe the mergeheads'
321+
assert mergerepo.listall_mergeheads() == [], (
322+
'state_cleanup() should wipe the mergeheads'
323+
)
324324

325325

326326
def test_merge_message(mergerepo):

test/test_repository_bare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def test_lookup_commit(barerepo):
135135
assert commit_sha == commit.id
136136
assert ObjectType.COMMIT == commit.type
137137
assert commit.message == (
138-
'Second test data commit.\n\n' 'This commit has some additional text.\n'
138+
'Second test data commit.\n\nThis commit has some additional text.\n'
139139
)
140140

141141

0 commit comments

Comments
 (0)