Skip to content

Commit

Permalink
Add failing test for #121
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Oct 3, 2020
1 parent 5481b59 commit 13691a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_gitpuller.py
Expand Up @@ -227,14 +227,17 @@ def test_reset_file():
"""
with Remote() as remote, Pusher(remote) as pusher:
pusher.push_file('README.md', '1')
pusher.push_file('unicode🙂.txt', '2')

with Puller(remote) as puller:
os.remove(os.path.join(puller.path, 'README.md'))
os.remove(os.path.join(puller.path, 'unicode🙂.txt'))

puller.pull_all()

assert puller.git('rev-parse', 'HEAD') == pusher.git('rev-parse', 'HEAD')
assert puller.read_file('README.md') == pusher.read_file('README.md') == '1'
assert puller.read_file('unicode🙂.txt') == pusher.read_file('unicode🙂.txt') == '2'


@pytest.fixture(scope='module')
Expand Down

0 comments on commit 13691a7

Please sign in to comment.