Skip to content

Add (currently failing) test case around saving metadata. - #514

Merged
peter-fogg merged 1 commit into
masterfrom
peter-fogg/test-metadata-save
Jul 29, 2013
Merged

Add (currently failing) test case around saving metadata.#514
peter-fogg merged 1 commit into
masterfrom
peter-fogg/test-metadata-save

Conversation

@peter-fogg

Copy link
Copy Markdown
Contributor

@sarina @singingwolfboy Tests Don's recent changes to xblock fields in #505. Will pass once merged with master.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to simply call super(ModuleStoreTestCase, self).setUp() rather than duplicating the logic here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic isn't present in ModuleStoreTestCase -- the behaviour we get by inheriting is setting up and tearing down the modulestore.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, what do we gain by subclassing from ModuleStoreTestCase, then? Why not just subclass from unittest.TestCase?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We get a unique modulestore collection in mongo, which will get cleaned up after the test is finished.

@sarina

sarina commented Jul 29, 2013

Copy link
Copy Markdown
Contributor

Squash your commits down to one then 👍 by me.

@peter-fogg

Copy link
Copy Markdown
Contributor Author

@sarina Danke, I'll just wait for tests to pass.

peter-fogg pushed a commit that referenced this pull request Jul 29, 2013
Add (currently failing) test case around saving metadata.
@peter-fogg
peter-fogg merged commit ee90ab6 into master Jul 29, 2013
@peter-fogg
peter-fogg deleted the peter-fogg/test-metadata-save branch July 29, 2013 20:32
chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
…_sidebar

adding the ability to override the sidebar name
Kelketek referenced this pull request in open-craft/openedx-platform Sep 17, 2015
Revert "Updated GP v1 notifications URL resolver to use new querystring attribute"
yoann-mroz pushed a commit to weuplearning/edx-platform that referenced this pull request Nov 30, 2020
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
farhaanbukhsh pushed a commit that referenced this pull request Mar 20, 2023
fix: Fix retiring user auth models on disable event (Nutmeg backport)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants