|
|
@@ -52,9 +52,9 @@ class ProviderTest(APIViewTestCases.APIViewTestCase):
|
|
|
provider = self.model.objects.first()
|
|
|
ct = ContentType.objects.get(app_label='circuits', model='provider')
|
|
|
graphs = (
|
|
|
- Graph(type=ct, name='Graph 1', source='http://example.com/graphs.py?site={{ obj.slug }}&foo=1'),
|
|
|
- Graph(type=ct, name='Graph 2', source='http://example.com/graphs.py?site={{ obj.slug }}&foo=2'),
|
|
|
- Graph(type=ct, name='Graph 3', source='http://example.com/graphs.py?site={{ obj.slug }}&foo=3'),
|
|
|
+ Graph(type=ct, name='Graph 1', source='http://example.com/graphs.py?provider={{ obj.slug }}&foo=1'),
|
|
|
+ Graph(type=ct, name='Graph 2', source='http://example.com/graphs.py?provider={{ obj.slug }}&foo=2'),
|
|
|
+ Graph(type=ct, name='Graph 3', source='http://example.com/graphs.py?provider={{ obj.slug }}&foo=3'),
|
|
|
)
|
|
|
Graph.objects.bulk_create(graphs)
|
|
|
|