Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRAYSAT-1917: Add unit tests for jinja_rendered decorator #282

Conversation

haasken-hpe
Copy link
Contributor

Summary and Scope

Add unit tests for usage of the jinja_rendered decorator on properties of the BaseInputItem.

Modify these unit tests to simplify them slightly and to ensure that the SomeTestItem class calls the BaseInputItem constructor, so that it sets the jinja_env instance attribute, which is used by the jinja_rendered decorator.

Issues and Related PRs

Testing

Tested on:

  • Local development environment

Test description:

Unit tests pass.

Risks and Mitigations

Low risk unit test improvements.

Add unit tests for usage of the `jinja_rendered` decorator on properties
of the `BaseInputItem`.

Modify these unit tests to simplify them slightly and to ensure that the
`SomeTestItem` class calls the `BaseInputItem` constructor, so that it
sets the `jinja_env` instance attribute, which is used by the
`jinja_rendered` decorator.

Test Description:
Unit tests pass.
@haasken-hpe
Copy link
Contributor Author

I'm not sure what the failing unit test is on the Jenkins build. Can you please take a look at that for me, @annapoorna-s-alt?

@annapoorna-s-alt annapoorna-s-alt force-pushed the CRAYSAT-1917-add-jinja-rendered-unit-tests branch 2 times, most recently from db2cede to 6e42a20 Compare November 6, 2024 13:04
Update the unit tests of the InputSessionTemplate class to include tests
that check for proper Jinja2 template rendering of the boot_sets field.
@haasken-hpe haasken-hpe merged commit 2fa4583 into CRAYSAT-1917-fix-jinja2-rendering Nov 6, 2024
3 checks passed
@haasken-hpe haasken-hpe deleted the CRAYSAT-1917-add-jinja-rendered-unit-tests branch November 6, 2024 14:38
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.

2 participants