Skip to content

Commit

Permalink
Uncomment out custom resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Pierce committed Apr 4, 2022
1 parent e39db2a commit 89275c9
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions testpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,32 @@

print(build_changeset(spec))

# class DoNothingSpec(BaseModel):
# some_value: str
#
# class DoNothingCodeChange(CodeChangeResource):
# kind = 'DoNothingCodeChange'
# version = 'v1alpha'
# spec: DoNothingSpec
#
# def make_code_changes(self, path: Path) -> None:
# pass
#
# register_custom_resource(DoNothingCodeChange)
#
# another_spec = """
# kind: Changeset
# version: v1alpha
# spec:
# name: time to do a thing
# issue_title: stuff
# issue_body: other stuff
# code_changes:
# - kind: DoNothingCodeChange
# version: v1alpha
# spec:
# some_value: "concrete value"
#
# """
#
# print(build_changeset(another_spec))
class DoNothingSpec(BaseModel):
some_value: str

class DoNothingCodeChange(CodeChangeResource):
kind = 'DoNothingCodeChange'
version = 'v1alpha'
spec: DoNothingSpec

def make_code_changes(self, path: Path) -> None:
pass

register_custom_resource(DoNothingCodeChange)

another_spec = """
kind: Changeset
version: v1alpha
spec:
name: time to do a thing
issue_title: stuff
issue_body: other stuff
code_changes:
- kind: DoNothingCodeChange
version: v1alpha
spec:
some_value: "concrete value"
"""

print(build_changeset(another_spec))

0 comments on commit 89275c9

Please sign in to comment.