Skip to content

Fix MAG L1D test leaking CDF files: incorrect function was being patched - #3373

Open
leowerneck wants to merge 1 commit into
IMAP-Science-Operations-Center:devfrom
leowerneck:lw/issue3364
Open

Fix MAG L1D test leaking CDF files: incorrect function was being patched#3373
leowerneck wants to merge 1 commit into
IMAP-Science-Operations-Center:devfrom
leowerneck:lw/issue3364

Conversation

@leowerneck

@leowerneck leowerneck commented Aug 6, 2026

Copy link
Copy Markdown

Change Summary

Overview

Closes: #3364

Prevents the MAG L1D attribute test from leaving ancillary CDF files in the repository root.

File changes

  • imap_processing/tests/mag/test_mag_l1d.py: line 233 was updated to patch the appropriate "imap_processing.cli.xarray_to_cdf" function instead of "imap_processing.cdf.utils.xarray_to_cdf".

Testing

Running poetry run pytest imap_processing/tests/mag/test_mag_l1d.py results in all tests passing with no persistent ancillary CDF files.

@tmplummer tmplummer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy enough. Thanks!

Can you please update the description to include "Closes: #3373". That is the correct incantation to get GH to automatically link the issue to the PR.

@leowerneck

Copy link
Copy Markdown
Author

I updated the description. Do I need to do anything for the CI to trigger? It says "Expected" instead of "Pending/Queued", so I wasn't sure.

@tmplummer

Copy link
Copy Markdown
Contributor

It says "Expected" instead of "Pending/Queued", so I wasn't sure.

I saw a slack message about GH actions being down right now. So I think we just have to wait for GH to fix this issue.
https://www.githubstatus.com/

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.

BUG - mag test files polluting repository

2 participants