Skip to content

[BUG] test_processWM.py tests not doing anything #671

@nate-kean

Description

@nate-kean

Describe the bug
Both of the tests in test_processWM.py (test_checkContainment and test_checkContainment2) are set to only do anything if a certain TEST_DIR / 'scenario_1/weather_files/ERA-5_2020_01_03_T23_00_00.nc exists. This file does not exist, however, and so these tests are running without asserting anything.
Maybe I am missing something. Could I be misunderstanding the purpose of these tests?

To Reproduce
Steps to reproduce the behavior:

  1. Pause test_processWM.py::test_checkContainment in the debugger
  2. See the path stored in getWM.files[0] and note that this path does not exist
  3. Observe that the function finishes without ever reaching an assert statement

Expected behavior
These tests should assert something before exiting.

Desktop (please complete the following information):

  • RAiDER git tag:
commit 2b7190cffd4d8f5f9ca57e320675724cb52ec52e (HEAD -> dev, upstream/dev, upstream/HEAD)
Merge: 701d788 25c897a
Author: Jeremy Maurer <maurer.jeremy@gmail.com>
Date:   Thu Jul 11 22:13:41 2024 -0500

    Merge pull request #663 from dbekaert/Changelog
    
    Update CHANGELOG.md
  • OS: Arch Linux 5.15.153.1-microsoft-standard-WSL2 on Windows 10
  • Python v3.12.3
  • conda v24.5.0

Additional context
Add any other context about the problem her

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions