#376 Fix tests after 812c2158
Merged 6 years ago by abompard. Opened 6 years ago by abompard.
abompard/fedora-hubs fix-tests  into  develop

file modified
+2 -2
@@ -30,7 +30,7 @@ 

  

          # check if widgets still are intact

          widgets = hubs.models.Widget.by_hub_id_all(hub.name)

-         self.assertEqual(13, len(widgets))

+         self.assertEqual(12, len(widgets))

  

      def test_delete_hubs(self):

          # verify the hub exists
@@ -46,7 +46,7 @@ 

  

          # check if widgets exist

          widgets = hubs.models.Widget.by_hub_id_all(hub.name)

-         self.assertEqual(13, len(widgets))

+         self.assertEqual(12, len(widgets))

  

          # delete the hub

          self.session.delete(hub)

@@ -72,7 +72,7 @@ 

              "name": "ralph",

              "owners": ["ralph"],

              "subscribers": [],

-             "widgets": [37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 61],

+             "widgets": [34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 56],

          }

          self.assertDictEqual(data, json.loads(result.get_data(as_text=True)))

  

Removing the pendingacls widget broke some tests, this commit fixes them.

Pull-Request has been merged by abompard

6 years ago