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

Unit test-cases #32

Merged
merged 13 commits into from
Nov 13, 2023
Merged

Unit test-cases #32

merged 13 commits into from
Nov 13, 2023

Conversation

RohanSunkarapalli
Copy link
Collaborator

I developed the unit test cases for individual folders and I've encountered that few folders don't exist in the nwmurl script. But these are the testcases for the one which exist.

RohanSunkarapalli and others added 12 commits October 31, 2023 17:58
pytest.ini is required in order to run the test
with `pytest` instead of just `python -m pytest`.
removed filenamelist.txt in test folder
removed urlgennwm.py in test folder
added `write_to_file` var
changed function call from `generate_urls` to `generate_urls_operational`
@jameshalgren
Copy link
Member

jameshalgren commented Nov 13, 2023

(pyenv310) nwmurl % pytest
=========================================================== test session starts ============================================================
platform darwin -- Python 3.10.12, pytest-7.4.2, pluggy-1.3.0
rootdir: /Users/user/git/nwmurl
configfile: pytest.ini
plugins: anyio-3.6.1
collected 67 items

test/test_analysisAssim.py .                                                                                                         [  1%]
test/test_analysisAssimExtend.py .                                                                                                   [  2%]
test/test_analysisAssimExtendNoDa.py .                                                                                               [  4%]
test/test_analysisAssimHawaii.py .                                                                                                   [  5%]
test/test_analysisAssimHawaiiNoDa.py .                                                                                               [  7%]
test/test_analysisAssimNoDa.py .                                                                                                     [  8%]
test/test_analysisAssimPuertorico.py .                                                                                               [ 10%]
test/test_analysisAssimPuertoricoNoDa.py .                                                                                           [ 11%]
test/test_cases.py ...................................                                                                               [ 64%]
test/test_forcingAnalysisAssim.py .                                                                                                  [ 65%]
test/test_forcingAnalysisAssimExtend.py .                                                                                            [ 67%]
test/test_forcingAnalysisAssimHawaii.py .                                                                                            [ 68%]
test/test_forcingAnalysisAssimPuertorico.py .                                                                                        [ 70%]
test/test_forcingMediumRange.py .                                                                                                    [ 71%]
test/test_forcingShortRange.py .                                                                                                     [ 73%]
test/test_forcingShortRangeAssimHawaii.py .                                                                                          [ 74%]
test/test_forcingShortRangeAssimPuertorico.py .                                                                                      [ 76%]
test/test_longRangeMem1.py .                                                                                                         [ 77%]
test/test_longRangeMem2.py .                                                                                                         [ 79%]
test/test_longRangeMem3.py .                                                                                                         [ 80%]
test/test_longRangeMem4.py .                                                                                                         [ 82%]
test/test_mediumRangeMem1.py .                                                                                                       [ 83%]
test/test_mediumRangeMem2.py .                                                                                                       [ 85%]
test/test_mediumRangeMem3.py .                                                                                                       [ 86%]
test/test_mediumRangeMem4.py .                                                                                                       [ 88%]
test/test_mediumRangeMem5.py .                                                                                                       [ 89%]
test/test_mediumRangeMem6.py .                                                                                                       [ 91%]
test/test_mediumRangeMemNoDa.py .                                                                                                    [ 92%]
test/test_mediumRangeNoDa.py .                                                                                                       [ 94%]
test/test_shortRange.py .                                                                                                            [ 95%]
test/test_shortRangeAssimHawaii.py .                                                                                                 [ 97%]
test/test_shortRangeAssimPuertorico.py .                                                                                             [ 98%]
test/test_shortRangeAssimPuertoricoNoDa.py .                                                                                         [100%]

============================================================ 67 passed in 0.87s =========================================================

@jameshalgren jameshalgren merged commit e297dca into CIROH-UA:main Nov 13, 2023
manjirigunaji pushed a commit to manjirigunaji/nwmurl that referenced this pull request Jan 22, 2024
Update python-publish.yml var and sec
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