Skip to content

Commit

Permalink
Fixes in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Nov 18, 2019
1 parent 49611d7 commit d68ce53
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

0.2
---
2019-11-19

- Hide empty sections/records.
- Add an option to generate changelog for latest release only.
- Handle multiple merge format commit messages.
- Prevent JSON decoding errors.
- Exclude tests from coverage.

0.1
---
2019-11-18
Expand Down
22 changes: 6 additions & 16 deletions src/matyan/tests/output/generate-changelog-releases.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
### Unreleased

**Other**


### 0.2

**Feature**
Expand All @@ -16,18 +11,8 @@

- Improve document sharing. Add option to share via GDrive [Artur Barseghyan]

**Other**


### 0.1

**Feature**

*MSFT-1234 Car Type Suggester*

- Add insurance amount indication based on car weight [Artur Barseghyan]
- Initial car type suggester implementation [Artur Barseghyan]

**Bugfix**

*MSFT-1236 Prevent Duplicate Postal Codes*
Expand All @@ -43,4 +28,9 @@
- Update docs [Artur Barseghyan]
- Deprecate API v 2.0 [Artur Barseghyan]

**Other**
**Feature**

*MSFT-1234 Car Type Suggester*

- Add insurance amount indication based on car weight [Artur Barseghyan]
- Initial car type suggester implementation [Artur Barseghyan]
2 changes: 0 additions & 2 deletions src/matyan/tests/output/generate-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@

- Update docs [Artur Barseghyan]
- Deprecate API v 2.0 [Artur Barseghyan]

**Other**
8 changes: 6 additions & 2 deletions src/matyan/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
class TestCommands(unittest.TestCase):
"""Matyan commands tests."""

maxDiff = None

@classmethod
def setUpClass(cls):
"""Set up."""
Expand Down Expand Up @@ -62,7 +64,8 @@ def setUpClass(cls):
def test_01_generate_changelog_command(self):
"""Test generate changelog command."""
res = subprocess.check_output([
'generate-changelog'
'generate-changelog',
'--no-other'
]).strip().decode()
self.assertEqual(res, self.changelog_output)
return res
Expand All @@ -73,7 +76,8 @@ def test_02_generate_changelog_command_show_releases(self):
"""Test generate changelog command."""
res = subprocess.check_output([
'generate-changelog',
'--show-releases'
'--show-releases',
'--no-other'
]).strip().decode()
self.assertEqual(res, self.changelog_releases_output)
return res
Expand Down

0 comments on commit d68ce53

Please sign in to comment.