Skip to content

Update sample data fixture file - #3580

Merged
madchap merged 2 commits into
DefectDojo:devfrom
Maffooch:demo
Jan 9, 2021
Merged

madchap merged 2 commits into
DefectDojo:devfrom
Maffooch:demo

Conversation

@Maffooch

@Maffooch Maffooch commented Jan 5, 2021

Copy link
Copy Markdown
Contributor

No description provided.

@madchap

madchap commented Jan 5, 2021

Copy link
Copy Markdown
Contributor

Re-ordering? What's the PR about?

@Maffooch

Maffooch commented Jan 5, 2021

Copy link
Copy Markdown
Contributor Author

The sample data file would not get loaded with the way it was ordered before. The tags were being referenced before definition. This resolves that issue so that the file is actually worth something again.

@valentijnscholten

Copy link
Copy Markdown
Member

should we add a quick unit test that uses this fixture just to make it loads well?

@valentijnscholten

Copy link
Copy Markdown
Member

nice, now I will know if I break it again :-)

@valentijnscholten

Copy link
Copy Markdown
Member

I think you can just do 'fixture = blabla.json' and django will load it for you. But explicit load also works

@madchap
madchap merged commit 1e5b7bd into DefectDojo:dev Jan 9, 2021
@madchap madchap mentioned this pull request Jan 19, 2021
@Maffooch
Maffooch deleted the demo branch February 8, 2021 23:21
9alexx3 pushed a commit to 9alexx3/django-DefectDojo that referenced this pull request Aug 12, 2026
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.

3 participants