Skip to content

Commit 0a39f37

Browse files
author
Andrii
committed
refactor: bump version & add TODO for tests + fix queries test
1 parent 390f72a commit 0a39f37

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

openedx_learning/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Open edX Learning ("Learning Core").
33
"""
44

5-
__version__ = "0.24.0"
5+
__version__ = "0.25.0"

tests/openedx_learning/apps/authoring/sections/test_api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
Entry = authoring_api.SectionListEntry
1414

1515

16+
# TODO: Turn SubSectionTestCase into SubSectionTestMixin and remove the
17+
# test-inherits-tests pylint warning below.
18+
# https://github.com/openedx/openedx-learning/issues/308
1619
@ddt.ddt
1720
class SectionTestCase(SubSectionTestCase): # pylint: disable=test-inherits-tests
1821
""" Test cases for Sections (containers of subsections) """
@@ -183,9 +186,9 @@ def test_create_section_queries(self):
183186
Test how many database queries are required to create a section
184187
"""
185188
# The exact numbers here aren't too important - this is just to alert us if anything significant changes.
186-
with self.assertNumQueries(22):
189+
with self.assertNumQueries(25):
187190
_empty_section = self.create_section_with_subsections([])
188-
with self.assertNumQueries(27):
191+
with self.assertNumQueries(30):
189192
# And try with a non-empty section:
190193
self.create_section_with_subsections([self.subsection_1, self.subsection_2_v1], key="u2")
191194

0 commit comments

Comments
 (0)