1. michilu
  2. fanstatic

Commits

Christian Zagrodnick  committed e8ea877

- DummyNeededResources takes the slots argument now.

  • Participants
  • Parent commits 982a162
  • Branches default

Comments (0)

Files changed (3)

File CHANGES.txt

View file
 0.13 (unreleased)
 =================
 
-- Nothing changed yet.
+- DummyNeededResources takes the slots argument now.
 
 
 0.12 (2012-08-05)

File fanstatic/core.py

View file
     needed are dropped to the floor.
     """
 
-    def need(self, resource):
+    def need(self, resource, slots=None):
         pass
 
     def has_resources(self):

File fanstatic/test_core.py

View file
     #assert resources == [obviel, forms, forms_autocomplete, tabview, bread,
     #                     zorgdas]
 
+
+def test_dummy_needed_should_take_slots_argument():
+    needed = get_needed()
+    a_resource = object()
+    needed.need(a_resource, slots={})
+
+
 # XXX tests for hashed resources when this is enabled. Needs some plausible
 # directory to test for hashes