ESGF / esgf-wget

Service API endpoint for simplified wget scripts
0 stars 4 forks source link

Add tests #33

Closed muryanto1 closed 3 years ago

muryanto1 commented 3 years ago

adding more testcases

mauzey1 commented 3 years ago

@muryanto1 When I tried running the pytest commands I got the following error.

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --data

Does the --data argument work for your tests?

mauzey1 commented 3 years ago

@muryanto1 Nevermind my last comment, I was in the wrong directory.

mauzey1 commented 3 years ago

The message for a project that is not allowed should be like the following where obs4MIPs is not allowed:

This query cannot be completed since the project, obs4MIPs, is not allowed to be accessed by this site. Please redo your query with unrestricted data only, and request obs4MIPs data from another site.