-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from psobot/psobot/fix-version-warning
Fix Keynote version warning in Py3.6.
- Loading branch information
Showing
3 changed files
with
28 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
import pytest | ||
|
||
from keynote_parser import bundle_utils | ||
from keynote_parser.macos_app_version import MacOSAppVersion | ||
|
||
|
||
def test_warn_on_old_version(capsys): | ||
dummy_version = MacOSAppVersion("9999.9", "10000.0.00", "9A000") | ||
with pytest.warns(bundle_utils.KeynoteVersionWarning): | ||
bundle_utils.warn_once_on_newer_keynote(installed_keynote_version=dummy_version) | ||
|
||
# Second call/import should not warn | ||
with pytest.warns(None): | ||
bundle_utils.warn_once_on_newer_keynote(installed_keynote_version=dummy_version) |