Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
IanBoden committed Jun 20, 2024
1 parent dcff7f2 commit c534efd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test_api_state_thingState.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class TestThing(testUtils.AbstractTest):
testPhysicalInterfaceName = "python-api-test-dt-pi"

# Logical Interface Stuff
testLiSchemaName = "python-api-test-dt-li-schema"
testLISchemaName = "python-api-test-dt-li-schema"
testLISchema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
Expand Down Expand Up @@ -133,7 +133,7 @@ def testCleanup(self):
for s in self.appClient.state.draft.schemas:
if s.name in (
TestThing.testEventSchemaName,
TestThing.testLiSchemaName,
TestThing.testLISchemaName,
TestThing.thingLISchemaName,
TestThing.thingSchemaName,
):
Expand Down Expand Up @@ -234,7 +234,7 @@ def createAndCheckDT(

def testCreatePreReqs(self):
# LI
test_schema_name = TestThing.testLiSchemaName
test_schema_name = TestThing.testLISchemaName
assert self.doesSchemaNameExist(test_schema_name) == False
testLIName = TestThing.testLogicalInterfaceName
assert self.doesLINameExist(testLIName) == False
Expand Down Expand Up @@ -443,9 +443,9 @@ def testResetThingState(self):
def testThingStateErrors(self):
# Check state for a non existent LI
try:
dummyLiId = "DummyLI"
thingState = TestThing.createdThing.states[dummyLiId]
print("There should be no thing state for LI %s. We have: %s" % (dummyLiId, thingState))
dummyLIId = "DummyLI"
thingState = TestThing.createdThing.states[dummyLIId]
print("There should be no thing state for LI %s. We have: %s" % (dummyLIId, thingState))
assert False == True # fail
except KeyError as e:
assert True # This is what we expect
Expand Down Expand Up @@ -504,7 +504,7 @@ def testDeletePreReqs(self):

# Delete the schema
del self.appClient.state.draft.schemas[TestThing.createdLISchema.id]
assert self.doesSchemaNameExist(TestThing.testLiSchemaName) == False
assert self.doesSchemaNameExist(TestThing.testLISchemaName) == False

del self.appClient.state.draft.schemas[TestThing.createdThingSchema.id]
assert self.doesSchemaNameExist(TestThing.thingSchemaName) == False
Expand Down

0 comments on commit c534efd

Please sign in to comment.