Skip to content

Commit

Permalink
remove more old named things
Browse files Browse the repository at this point in the history
  • Loading branch information
IanBoden committed Jun 20, 2024
1 parent fb39d55 commit fdfbd7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_api_state_thingState.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class TestThing(testUtils.AbstractTest):
testDeviceTypeName = "python-api-test-DeviceType"
updatedDeviceTypeName = "python-api-test-DeviceType-updated"
thingSchemaName = "thingSchema"
thingSchemaNameOld = "testThingSchema"
thingLISchemaName = "thingLISchema"
thingTypeId = "thingTypeId"

Expand Down Expand Up @@ -144,6 +145,7 @@ def testCleanup(self):
TestThing.testLISchemaName,
TestThing.thingLISchemaName,
TestThing.thingSchemaName,
TestThing.thingSchemaNameOld,
):
print("Deleting old test schema instance: %s" % (s))
del self.appClient.state.draft.schemas[s.id]
Expand Down Expand Up @@ -194,6 +196,7 @@ def doesDTNameExist(self, name):
def createSchema(self, name, schemaFileName, schemaContents, description):
jsonSchemaContents = json.dumps(schemaContents)
createdSchema = self.appClient.state.draft.schemas.create(name, schemaFileName, jsonSchemaContents, description)
print("Created schema %s" % (createdSchema))
return createdSchema

def createEventType(self, name, description, schemaId):
Expand Down

0 comments on commit fdfbd7e

Please sign in to comment.