Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More realistic workshop factories #30296

Merged
merged 4 commits into from
Aug 19, 2019
Merged

Conversation

islemaster
Copy link
Contributor

@islemaster islemaster commented Aug 16, 2019

Continuing work started in #30281 to clean up our workshop factories and make them more realistic - specifically reflecting the workshop types that we're actively supporting.

This particular change adds support for CSD and CSP summer workshops, and removes the old summer workshop traits.

@islemaster islemaster changed the base branch from staging to realistic-workshop-factories August 16, 2019 22:08
@islemaster islemaster force-pushed the more-realistic-workshop-factories branch from 03e2ab4 to 148f1e7 Compare August 16, 2019 22:14
@codecov-io
Copy link

codecov-io commented Aug 16, 2019

Codecov Report

Merging #30296 into staging will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           staging   #30296   +/-   ##
========================================
  Coverage    76.77%   76.77%           
========================================
  Files          678      678           
  Lines        27688    27688           
========================================
  Hits         21258    21258           
  Misses        6430     6430

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2239281...683d8db. Read the comment docs.

@islemaster islemaster changed the base branch from realistic-workshop-factories to staging August 16, 2019 23:51
@@ -648,7 +655,10 @@ class ApplicationsControllerTest < ::ActionController::TestCase
time = Date.new(2017, 3, 15)

Timecop.freeze(time) do
workshop = create :workshop, :local_summer_workshop, num_sessions: 3, sessions_from: Date.new(2017, 1, 1), processed_location: {city: 'Orchard Park', state: 'NY'}.to_json
workshop = create :summer_workshop,
num_sessions: 3,

Choose a reason for hiding this comment

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

I don't think there is a reason that this needs to have 3 sessions - it looks like it could be a standard 5-day summer workshop

@@ -780,7 +790,10 @@ class ApplicationsControllerTest < ::ActionController::TestCase
time = Date.new(2017, 3, 15)

Timecop.freeze(time) do
workshop = create :workshop, :local_summer_workshop, num_sessions: 3, sessions_from: Date.new(2017, 1, 1), processed_location: {city: 'Orchard Park', state: 'NY'}.to_json
workshop = create :summer_workshop,
num_sessions: 3,

Choose a reason for hiding this comment

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

same here - could just go with the default 5 sessions

@islemaster islemaster merged commit f318577 into staging Aug 19, 2019
@fisher-alice fisher-alice deleted the more-realistic-workshop-factories branch July 13, 2022 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants