Skip to content

Commit

Permalink
Add missed dbos_class decorators (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-dbos authored Jan 22, 2025
1 parent a529b4c commit 14c7355
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/queuedworkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def default_config() -> ConfigFile:
q = Queue("testq", concurrency=1, limiter={"limit": 1, "period": 1})


@DBOS.dbos_class()
class WF:
@staticmethod
@DBOS.workflow()
Expand Down
1 change: 1 addition & 0 deletions tests/test_classdecorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def test_func_admin_r_s(var: str) -> str:

# We can put classes in functions to test decorators for now...
def test_simple_workflow_static(dbos: DBOS) -> None:
@DBOS.dbos_class()
class DBOSTestClassStatic:
txn_counter: int = 0
wf_counter: int = 0
Expand Down

0 comments on commit 14c7355

Please sign in to comment.