Skip to content

Commit

Permalink
Test cleanup and todos
Browse files Browse the repository at this point in the history
  • Loading branch information
DrCubby committed Aug 11, 2023
1 parent a58f1cf commit 449239e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

def test_retrieval_of_citation_styles_for_specific_preprint_provider(self):
# Setup
preprint_provider = PreprintProviderFactory() # Assuming you have a factory for PreprintProvider
expected_citation_styles = [...] # Define the expected citation styles
preprint_provider = PreprintProviderFactory()
# Define the expected citation styles
expected_citation_styles = ['apa', 'chicago-author-date', 'modern-language-association']

# Action
response = self.client.get(reverse('preprintprovidercitationstyles-view', args=[preprint_provider.id]))
Expand All @@ -33,7 +34,7 @@ def test_admin_form_with_valid_citation_styles(self):
citation_styles = CitationStyle.objects.all()[:3] # Assuming you want to test with three styles
data = {
'citation_styles': citation_styles,
# Other fields required for the form
# TODO: Other fields required for the form
}

# Action
Expand All @@ -49,7 +50,7 @@ def test_admin_form_with_invalid_citation_styles(self):
citation_styles = ['invalid_style'] # Invalid citation styles
data = {
'citation_styles': citation_styles,
# Other fields required for the form
# TODO: Other fields required for the form
}

# Action
Expand Down

0 comments on commit 449239e

Please sign in to comment.