예제 #1
0
    def test_get_built_app_ids_with_submissions_for_app_id(self):
        app_ids = get_built_app_ids_with_submissions_for_app_id(self.domain, self.apps[0].get_id)
        self.assertEqual(len(app_ids), 1)  # Should get the one that has_submissions

        app_ids = get_built_app_ids_with_submissions_for_app_id(
            self.domain, self.apps[0].get_id, self.first_saved_version
        )
        self.assertEqual(len(app_ids), 0)  # Should skip the one that has_submissions
예제 #2
0
    def test_get_built_app_ids_with_submissions_for_app_id(self):
        app_ids = get_built_app_ids_with_submissions_for_app_id(
            self.domain, self.apps[0].get_id)
        self.assertEqual(len(app_ids),
                         1)  # Should get the one that has_submissions

        app_ids = get_built_app_ids_with_submissions_for_app_id(
            self.domain, self.apps[0].get_id, self.first_saved_version)
        self.assertEqual(len(app_ids),
                         0)  # Should skip the one that has_submissions