Skip to content

Commit f8a5b4b

Browse files
committed
test: SyntaxError - global ASSET_UID test case fix
1 parent 85cad5a commit f8a5b4b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,5 @@ venv.bak/
121121

122122
pipeline.yaml
123123
docs/
124-
test-results
124+
test-results
125+
pytest-output.log

tests/test_assets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ def test_014_setting_retry_strategy_api(self):
5555
[408, 429], self.stack.retry_strategy.status_forcelist)
5656

5757
def test_01_assets_query_initial_run(self):
58+
global ASSET_UID
5859
result = self.asset_query.find()
5960
if result is not None:
6061
assets = result.get('assets', [])
6162
# Just verify we got assets, don't check exact count
6263
self.assertGreater(len(assets), 0, "Should have at least one asset")
6364
# Use the first asset if ASSET_UID not set
6465
if assets and not ASSET_UID:
65-
global ASSET_UID
6666
ASSET_UID = assets[0]['uid']
6767

6868
def test_02_asset_method(self):

0 commit comments

Comments
 (0)