Test fixes for Monterey/M1
This commit is contained in:
parent
2ffcf1e82b
commit
51ba54971a
@ -1,3 +1,3 @@
|
||||
""" version info """
|
||||
|
||||
__version__ = "0.43.1"
|
||||
__version__ = "0.43.2"
|
||||
|
||||
@ -252,7 +252,7 @@ UUID_NOT_REFERENCE = "F12384F6-CD17-4151-ACBA-AE0E3688539E"
|
||||
UUID_DUPLICATE = ""
|
||||
|
||||
UUID_DETECTED_TEXT = {
|
||||
"E2078879-A29C-4D6F-BACB-E3BBE6C3EB91": "osxphotos",
|
||||
"E2078879-A29C-4D6F-BACB-E3BBE6C3EB91": "OPEN",
|
||||
"A92D9C26-3A50-4197-9388-CB5F7DB9FA91": None,
|
||||
}
|
||||
|
||||
|
||||
@ -266,8 +266,8 @@ TEMPLATE_VALUES_DATE_NOT_MODIFIED = {
|
||||
|
||||
UUID_DETECTED_TEXT = "E2078879-A29C-4D6F-BACB-E3BBE6C3EB91"
|
||||
TEMPLATE_VALUES_DETECTED_TEXT = {
|
||||
"{detected_text}": "osxphotos",
|
||||
"{;+detected_text:0.5}": "osxphotos;",
|
||||
"{detected_text}": "OPEN",
|
||||
"{;+detected_text:0.5}": "OPEN",
|
||||
}
|
||||
|
||||
COMMENT_UUID_DICT = {
|
||||
|
||||
@ -25,7 +25,7 @@ def test_get_uti_for_extension():
|
||||
assert get_uti_for_extension(ext) == EXT_DICT[ext]
|
||||
|
||||
|
||||
def test_get_preferred_uti_extension_no_obj():
|
||||
def test_get_preferred_uti_extension_no_objc():
|
||||
"""test get_preferred_uti_extension when running on macOS >= 12"""
|
||||
OLD_VER = osxphotos.uti.OS_VER
|
||||
osxphotos.uti.OS_VER = 12
|
||||
@ -34,7 +34,7 @@ def test_get_preferred_uti_extension_no_obj():
|
||||
osxphotos.uti.OS_VER = OLD_VER
|
||||
|
||||
|
||||
def test_get_uti_for_extension_no_obj():
|
||||
def test_get_uti_for_extension_no_objc():
|
||||
"""get get_uti_for_extension when running on macOS >= 12"""
|
||||
OLD_VER = osxphotos.uti.OS_VER
|
||||
osxphotos.uti.OS_VER = 12
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user