Skip to content

Commit

Permalink
publish testing graphs, re #11730
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Feb 10, 2025
1 parent 3ad0fd6 commit 5b6324a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/models/resource_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ def test_self_referring_resource_instance_descriptor(self):
self.assertEqual(r.displayname(), "test value ")

def test_resource_instance_tile_update(self):
user = User.objects.get(username="admin")
graph_a = Graph.new(name="Graph A", is_resource=True)
node_group_a = models.NodeGroup.objects.create()
resource_instance_node = models.Node.objects.create(
Expand All @@ -499,6 +500,7 @@ def test_resource_instance_tile_update(self):
datatype="resource-instance-list",
istopnode=False,
)
graph_a.publish(user=user)
graph_b = Graph.new(name="Graph B", is_resource=True)
node_group_b = models.NodeGroup.objects.create()
string_node = models.Node.objects.create(
Expand All @@ -508,6 +510,7 @@ def test_resource_instance_tile_update(self):
datatype="non-localized-string",
istopnode=False,
)
graph_b.publish(user=user)

resource_b_1 = models.ResourceInstance.objects.create(graph=graph_b)
tile_b_1 = Tile.get_blank_tile(
Expand Down

0 comments on commit 5b6324a

Please sign in to comment.