Skip to content

Commit

Permalink
new test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftp committed Jan 31, 2025
1 parent a4a4f48 commit e72e7bf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_dbos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,3 +1212,19 @@ def test_workflow_dest() -> str:

# Reset logging
logging.getLogger("dbos").propagate = original_propagate


def test_destroy_semantics(dbos: DBOS, config: ConfigFile):

@DBOS.workflow()
def test_workflow(var: str) -> str:
return var

var = "test"
assert test_workflow(var) == var

DBOS.destroy()
DBOS(config=config)
DBOS.launch()

assert test_workflow(var) == var

0 comments on commit e72e7bf

Please sign in to comment.