Skip to content

Commit

Permalink
fix a couple of listings still in old mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hjwp committed Mar 22, 2021
1 parent 7dc9c50 commit e1b5635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter_03_abstractions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,14 @@ def test_when_a_file_exists_in_the_source_but_not_the_destination():
source_hashes = {"hash1": "fn1"}
dest_hashes = {}
actions = determine_actions(source_hashes, dest_hashes, Path("/src"), Path("/dst"))
assert list(actions) == [("copy", Path("/src/fn1"), Path("/dst/fn1"))]
assert list(actions) == [("COPY", Path("/src/fn1"), Path("/dst/fn1"))]
def test_when_a_file_has_been_renamed_in_the_source():
source_hashes = {"hash1": "fn1"}
dest_hashes = {"hash1": "fn2"}
actions = determine_actions(source_hashes, dest_hashes, Path("/src"), Path("/dst"))
assert list(actions) == [("move", Path("/dst/fn2"), Path("/dst/fn1"))]
assert list(actions) == [("MOVE", Path("/dst/fn2"), Path("/dst/fn1"))]
----
====

Expand Down

0 comments on commit e1b5635

Please sign in to comment.