Skip to content

Commit

Permalink
test: Fixing python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV committed Jan 22, 2024
1 parent ad2c813 commit 1544a45
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cms/djangoapps/contentstore/views/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def _studio_wrap_xblock(xblock, view, frag, context, display_name_only=False):
'is_reorderable': is_reorderable,
'can_edit': can_edit,
'can_edit_visibility': context.get('can_edit_visibility', is_course),
'course_authoring_url': get_course_authoring_url(course.location),
'course_authoring_url': settings.COURSE_AUTHORING_MICROFRONTEND_URL,
'is_loading': context.get('is_loading', False),
'is_selected': context.get('is_selected', False),
'selectable': context.get('selectable', False),
Expand Down
2 changes: 1 addition & 1 deletion cms/djangoapps/contentstore/views/tests/test_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def test_tag_count_in_container_fragment(self, mock_get_object_tag_counts):
}
html, __ = self._get_container_preview(root_usage_key)
self.assertIn("wrapper-xblock", html)
self.assertIn(f'data-testid="tag-count-button', html)
self.assertIn('data-testid="tag-count-button"', html)

def test_split_test(self):
"""
Expand Down
6 changes: 3 additions & 3 deletions cms/static/js/views/course_outline.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ function(
this.makeContentDraggable(this.el);
// Show/hide the paste button
this.initializePasteButton(this.el);
this.renderTagCount();
//this.renderTagCount();
return renderResult;
},

renderTagCount: function() {
const contentId = this.model.get('id')
const contentId = this.model.get('id');
var countModel = new TagCountModel({
content_id: contentId,
tags_count: this.model.get('tag_counts_by_unit')[contentId],
Expand Down Expand Up @@ -478,7 +478,7 @@ function(
},

openManageTagsDrawer() {
const taxonomyTagsWidgetUrl = this.model.get('taxonomy_tags_widget_url')
const taxonomyTagsWidgetUrl = this.model.get('taxonomy_tags_widget_url');
const contentId = this.model.get('id');
TaggingDrawerUtils.openDrawer(taxonomyTagsWidgetUrl, contentId);
},
Expand Down

0 comments on commit 1544a45

Please sign in to comment.