Skip to content

refactor studio component creation in acceptance tests - #1370

Merged
jzoldak merged 3 commits into
masterfrom
zoldak/refactor-cms-acceptance-js
Oct 16, 2013
Merged

refactor studio component creation in acceptance tests#1370
jzoldak merged 3 commits into
masterfrom
zoldak/refactor-cms-acceptance-js

Conversation

@jzoldak

@jzoldak jzoldak commented Oct 16, 2013

Copy link
Copy Markdown
Contributor

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.

I think the naming here is a little confusing. Intuitively, I'd think that a function called add_unit could be called multiple times to create several units; this implementation won't allow that.

Maybe something like setup_one_unit would be clearer: the function's job is to do everything necessary to ensure that the user is viewing a single unit, including creating the course, logging the user in, etc.

This should have a docstring as well.

@wedaly

wedaly commented Oct 16, 2013

Copy link
Copy Markdown
Contributor

Some small style comments, but otherwise looks good. The tests are passing reliably for me locally.

jzoldak pushed a commit that referenced this pull request Oct 16, 2013
refactor studio component creation in acceptance tests
@jzoldak
jzoldak merged commit dbfc38d into master Oct 16, 2013
@jzoldak
jzoldak deleted the zoldak/refactor-cms-acceptance-js branch October 17, 2013 13:47
giovannicimolin pushed a commit to open-craft/openedx-platform that referenced this pull request Feb 8, 2019
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.

2 participants