You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the merge of feature/consolidate-readmes into dev, we introduced a new method for testing readme file correctness, assertProjectReadmeContent. This method replaced the previous assertProjectReadmeContains, which checked for specific strings within readme files. The new method performs a line-by-line comparison to make sure the format and content of the expected and output readme files are identical.
Problem or idea
The test for the portal metadata readme file is still using the outdated assertProjectReadmeContains method. To align with the new changes and verify the accuracy of the portal metadata readme file, we need to adjust the create_portal_metadata management command test to use the new assertProjectReadmeContent method.
Solution or next step
Generate the portal metadata readme file in test_data/readmes
Add placeholders TEST_TODAYS_DATE and PROJECT_ID_{i} to the newly generated readme file
Update test_create_portal_metadata to use assertProjectReadmeContent and confirm the correctness of the portal metadata readme file
The text was updated successfully, but these errors were encountered:
nozomione
changed the title
Update test to use assertProjectReadmeContent for create_portal_metadata management command
Update create_portal_metadata management command test to use assertProjectReadmeContentAug 29, 2024
nozomione
changed the title
Update create_portal_metadata management command test to use assertProjectReadmeContent
Update test_create_portal_metadata to use assertProjectReadmeContentAug 29, 2024
nozomione
changed the title
Update test_create_portal_metadata to use assertProjectReadmeContent
Update test_create_portal_metadata to use assertProjectReadmeContent
Sep 11, 2024
Context
Parent issue: #708
Feature branch:
feature/portal-metadata-command
With the merge of
feature/consolidate-readmes
intodev
, we introduced a new method for testing readme file correctness,assertProjectReadmeContent
. This method replaced the previousassertProjectReadmeContains
, which checked for specific strings within readme files. The new method performs a line-by-line comparison to make sure the format and content of the expected and output readme files are identical.Problem or idea
The test for the portal metadata readme file is still using the outdated
assertProjectReadmeContains
method. To align with the new changes and verify the accuracy of the portal metadata readme file, we need to adjust thecreate_portal_metadata
management command test to use the newassertProjectReadmeContent
method.Solution or next step
test_data/readmes
TEST_TODAYS_DATE
andPROJECT_ID_{i}
to the newly generated readme filetest_create_portal_metadata
to useassertProjectReadmeContent
and confirm the correctness of the portal metadata readme fileThe text was updated successfully, but these errors were encountered: