Adjusted to enforce field naming conventions
diff --git a/planetstack/tests/generate_billing_sample.py b/planetstack/tests/generate_billing_sample.py
index 7fdfbdd..b1413e3 100644
--- a/planetstack/tests/generate_billing_sample.py
+++ b/planetstack/tests/generate_billing_sample.py
@@ -118,7 +118,7 @@
now = int(time.time())/HOUR_SECONDS*HOUR_SECONDS
charge_kind=None
- for resource in slice.serviceClass.resources.all():
+ for resource in slice.serviceClass.serviceresources.all():
if resource.name == "numberCores":
charge_kind = "reservation"
cost = resource.cost