Skip to content

Commit

Permalink
use real run uuid in unit test (#25086)
Browse files Browse the repository at this point in the history
## Summary & Motivation

use a UUID4 for a run id instead of "sldkfjsldf"

## How I Tested These Changes

ran the unit test

Co-authored-by: Neil Fulwiler <[email protected]>
  • Loading branch information
neilfulwiler and Neil Fulwiler authored Oct 4, 2024
1 parent 2e17ac9 commit 78650e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import unittest
from datetime import datetime, timedelta
from typing import Optional
from uuid import uuid4

import pytest
from dagster import _seven, job, op
Expand Down Expand Up @@ -1094,7 +1095,7 @@ def test_add_get_snapshot(self, storage):
assert not storage.has_job_snapshot(job_snapshot_id)

def test_single_write_read_with_snapshot(self, storage: RunStorage):
run_with_snapshot_id = "lkasjdflkjasdf"
run_with_snapshot_id = str(uuid4())
job_def = GraphDefinition(name="some_pipeline", node_defs=[]).to_job()

job_snapshot = job_def.get_job_snapshot()
Expand Down

0 comments on commit 78650e1

Please sign in to comment.