Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create NewsFactory * Update Faker and move to one factory per apps * Implement HighlightFactory * Update the highlight tests * 1. Implement factories for Person, InternetHealthIssue, and Affiliation models. 2. WIP implement factories Homepage and HomepageHighlights models. HomepageLeaders and HomepageNews factories are not implemented yet. * news factory WIP * 1. fixes for highlights factory and tests 2. fixes for homepage factory and tests 3. fixes for people factory * 1. Implement HomepageLeaderFactory tests 2. Fix the post_generation check for a tuple in the PersonFactory * lint fixes * Implement tests for the PersonFactory class * Fix news factory and tests. Fix some typos * Move tests in a tests folder per app + HighlightFactory tests * Add milestone factory + tests * Remove UTC and general cleanup * make the milestone duration a datetime.datetime, and make it configurable * Refactor Highlight View Tests 1. Refactor the view tests to use rest_framework.test.APIRequestFactory so that the view classes can be directly tested 2. Separate the HighlightView and HighlightListView tests into separate TestCase classes 3. Test only one thing in each test case of HighlightView and HighlightListView * HightlightFactory test cleanup * Homepage Factories Tests 1. Move homepage app tests into a tests directory 2. Refactor the HomepageFactory, HomepageLeadersFactory, HomepageNewsFactory and HomepageHighlightsFactory tests so they test only what makes sense - i.e We shouldn't test that functionality provided by FakerBoy can pass arguments to sub-factories * WIP Homepage view tests * Fix views tests + typo * first try at the management command * FileField Support 1. Add some placeholder images for generated models 2. Write a custom provider for Faker that can generate paths to the placeholder images 3. Using a post_generate hook, update the 'name' attribute on the FileFields. This must be done in a post_generate hook so that we don't have to constantly be reading and writing and duplicating images as we generate data (images are shared amongst the models). * Small fix * Such change, very wow 1. Implemented LandingPage Factory and tests 2. test cleanup in basically all the test files 3. used moar LazyAttributes so that we can join arrays of sentences/paragraphs/words or strip trailing periods from Faker lorem data 4. fixed linting issues 5. removed fixture data 6. changed LOAD_FIXTURE to LOAD_FAKE_DATA 7. wired up the new management command to the heroku release command * Management command day! 1: Revert paragraphs generation changes back to Faker.paragraph() 2: Change start date in milestones to have events in the recent section 3: Create a management command that can wipe previous database data and generate new fake one Need to fiw some todos in the management command + write tests for it * 1. Separate model deletion into a separate management command, and call it when requested in the load_fake_data command 2. Add coverage and remove fake-factory requirements.py 3. Add in stdout logging to the comands 4. Create a base opportunity page, like staging/prod, and make it the parent of the other opportunity pages 5. For each person, generate and associate an affiliation * Generate actual Internet Health Issue objects, to be associated with the generated People * remove unused import, report coverage to coveralls * fix invalid YAML in .travis.yml * how did that sneak back in there * try removing trailing slashes * It helps if you do not hard code the pk * add coveralls badge * copy paste fail * 1. Add a seed option to ensure reproducible output 2. Add landing pages with CTAs * Modify the command to load fake data on Heroku review apps * fix a lint error * Small fixes + readme update * Always provide our own seed value to Faker, so we can output it, for reproducible results * update app.json * update readme * missed a typo
- Loading branch information