- Standardized string quotes across multiple files to use double quotes for consistency. - Improved formatting of JSON dumps in mock data for better readability. - Enhanced the structure of various functions and data definitions for clarity. - Updated test cases to reflect changes in data structure and ensure accuracy.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
"""Tests for dashboard.mock_data."""
|
||||
|
||||
import json
|
||||
|
||||
from django.test import TestCase
|
||||
@@ -11,7 +12,17 @@ class GetMockContextTest(TestCase):
|
||||
|
||||
def test_returns_all_top_level_keys(self):
|
||||
ctx = get_mock_context()
|
||||
expected_keys = {"region", "pcpu", "vcpu", "pram", "vram", "vm", "flavors", "audits", "current_cluster"}
|
||||
expected_keys = {
|
||||
"region",
|
||||
"pcpu",
|
||||
"vcpu",
|
||||
"pram",
|
||||
"vram",
|
||||
"vm",
|
||||
"flavors",
|
||||
"audits",
|
||||
"current_cluster",
|
||||
}
|
||||
self.assertEqual(set(ctx.keys()), expected_keys)
|
||||
|
||||
def test_region_structure(self):
|
||||
|
||||
Reference in New Issue
Block a user