-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump pyinstaller from 5.0 to 5.13.2 in /tools/deps (#4111)
* Bump pyinstaller from 5.0 to 5.13.2 in /tools/deps * Bump pywin32-ctypes from 0.2.0 to 0.2.2 in /tools/deps (#4112) * Bump pefile from 2021.5.24 to 2023.2.7 in /tools/deps (#3783) * Bump pyinstaller-hooks-contrib from 2021.2 to 2023.8 in /tools/deps (#4098) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: swetayadav1 <[email protected]> Co-authored-by: Sweta Yadav <[email protected]>
- Loading branch information
1 parent
7a2b7c5
commit d8f93b1
Showing
7 changed files
with
71 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import platform | ||
from unittest.mock import Mock | ||
|
||
from nxdrive import fatal_error | ||
from nxdrive.constants import MAC | ||
|
||
|
||
def test_check_os_version(monkeypatch): | ||
"""Check the OS version compatibility for Nuxeo Drive""" | ||
assert fatal_error.check_os_version() | ||
|
||
if MAC: | ||
# Test for lower version of MacOS. It will pop-up a Fatal error screen | ||
def mac_ver(): | ||
return ["10.2.1"] | ||
|
||
monkeypatch.setattr(platform, "mac_ver", mac_ver) | ||
|
||
fatal_error.fatal_error_mac = Mock() | ||
assert not fatal_error.check_os_version() |
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