Skip to content

Commit b8c447c

Browse files
stdavissteveoh
authored andcommitted
test: add missing local sde skip to a few more tests
1 parent cccad2b commit b8c447c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_change_detection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from forklift import core
1515
from forklift.change_detection import ChangeDetection, _get_hashes, hash_field, table_name_field
1616
from forklift.models import Crate
17+
from tests.test_core import skip_if_no_local_sde
1718

1819
test_data_folder = str(Path(__file__).parent / "data")
1920

@@ -109,6 +110,7 @@ def test_invalid_data(test_gdb):
109110

110111

111112
def test_preserves_globalids(test_gdb):
113+
skip_if_no_local_sde()
112114
hash_table = str(Path(test_gdb) / "TableHashes")
113115
scratch_hash_table = str(Path(arcpy.env.scratchGDB) / Path(hash_table).name)
114116
scratch_destination = str(Path(arcpy.env.scratchGDB) / "GlobalIds")
@@ -135,6 +137,7 @@ def test_preserves_globalids(test_gdb):
135137

136138

137139
def test_preserves_globalids_table(test_gdb):
140+
skip_if_no_local_sde()
138141
hash_table = str(Path(test_gdb) / "TableHashes")
139142
scratch_hash_table = str(Path(arcpy.env.scratchGDB) / Path(hash_table).name)
140143
scratch_destination = str(Path(arcpy.env.scratchGDB) / "GlobalIds")
@@ -161,6 +164,7 @@ def test_preserves_globalids_table(test_gdb):
161164

162165

163166
def test_can_handle_globalid_fields_without_index(test_gdb):
167+
skip_if_no_local_sde()
164168
hash_table = str(Path(test_gdb) / "TableHashes")
165169
scratch_hash_table = str(Path(arcpy.env.scratchGDB) / Path(hash_table).name)
166170
scratch_destination = str(Path(arcpy.env.scratchGDB) / "GlobalIds")

0 commit comments

Comments
 (0)