Skip to content

Clean up db init in tests#73

Merged
yaoandrew merged 4 commits intostagingfrom
clean-up-db-init-in-tests
Dec 17, 2019
Merged

Clean up db init in tests#73
yaoandrew merged 4 commits intostagingfrom
clean-up-db-init-in-tests

Conversation

@yaoandrew
Copy link
Copy Markdown
Contributor

Went back to clean up a few previous commits based on more recent feedback

  • Fix tests where the database was being initialized BeforeEach individual test
  • Fix tests to use a copy of test_data/models

Copy link
Copy Markdown
Contributor

@rmulhol rmulhol left a comment

Choose a reason for hiding this comment

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

Nice work - these changes are legit!

Didn't note everywhere goimports -w would help, but other than that my only thought is removing db vars from places where it's not used by the converter.

Copy link
Copy Markdown
Contributor

@elizabethengelman elizabethengelman left a comment

Choose a reason for hiding this comment

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

🦔

},
}

func TickModel() event.InsertionModel { return CopyEventModel(tickModel) }
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.

🥇

@yaoandrew yaoandrew force-pushed the clean-up-db-init-in-tests branch from ee50798 to e88ff45 Compare December 16, 2019 21:40
@yaoandrew yaoandrew force-pushed the clean-up-db-init-in-tests branch from e88ff45 to fa9188f Compare December 16, 2019 23:03
@yaoandrew yaoandrew merged commit eb41c6d into staging Dec 17, 2019
@yaoandrew yaoandrew deleted the clean-up-db-init-in-tests branch December 17, 2019 00:46
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