Skip to content

Commit

Permalink
Update tests to match new semantics (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacomis committed Dec 6, 2017
1 parent aa8577a commit 546207f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/project_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ def check_one(project, expected, after = None, before = None):
)

project = Project.from_url('https://github.com/squaresLab/blameandshame-test-repo')
check_one(project, ['e1d2532', '71622b3', '9ca70f7', '2282c66'],
check_one(project, ['e1d2532', '71622b3', '9ca70f7'],
after = '2282c66', before = 'e1d2532')

# Starting from first commit
check_one(project, ['922e13d', '422cab3', '964adc5'],
check_one(project, ['922e13d', '422cab3'],
after = '964adc5', before = '922e13d')

# after == before
check_one(project, ['2282c66'],
check_one(project, [],
after = '2282c66', before = '2282c66')

def test_commits_to_file(self):
Expand Down Expand Up @@ -97,8 +97,8 @@ def check_one(project, filename, expected, after = None, before = None):
before = '474ea04')

# After first commit
check_one(project, 'README.md', ['964adc5'],
after = '964adc5', before = '422cab3')
check_one(project, 'file-one.txt', ['474ea04', '922e13d', '422cab3'],
after = '964adc5', before = '474ea04')


def test_commits_to_line(self):
Expand Down

0 comments on commit 546207f

Please sign in to comment.