-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for commit log parsing
- Loading branch information
Showing
8 changed files
with
154 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import absolute_import, print_function, unicode_literals | ||
import pytest | ||
|
||
from changelogs import get_commit_log | ||
|
||
@pytest.fixture(autouse=True) | ||
@pytest.mark.usefixtures('betamax_session') | ||
def record(monkeypatch, betamax_session): | ||
def session(): | ||
return betamax_session | ||
monkeypatch.setattr("changelogs.changelogs.Session", session) | ||
|
||
|
||
def test_changelogs(): | ||
log, raw_log = get_commit_log("changelogs") | ||
assert 'Correct time traveling changelog. [Alexandru Chirila]' in log['0.9.0'] | ||
assert 'Bump version: 0.2.0 → 0.3.0' in log['0.3.0'] | ||
|
||
assert 'fcafefa4380a03135745f5e306577ff2446130bb' in raw_log | ||
assert 'added test dependencies' in raw_log | ||
assert 'initial release from pyup.io' in raw_log |
Large diffs are not rendered by default.
Oops, something went wrong.