Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Oceano2python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
US191
Oceano2python
Commits
fb8a8a2f
Commit
fb8a8a2f
authored
6 years ago
by
jacques Grelet
Browse files
Options
Downloads
Patches
Plain Diff
add test for PSAL
parent
fe619f25
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_roscop.py
+14
-1
14 additions, 1 deletion
tests/test_roscop.py
with
14 additions
and
1 deletion
tests/test_roscop.py
+
14
−
1
View file @
fb8a8a2f
...
...
@@ -24,10 +24,23 @@ class RoscopTest(unittest.TestCase):
'''
test the number of entries in csv file
'''
self
.
assertEqual
(
len
(
self
.
r
),
68
)
def
test_key
(
self
):
def
test_key
_TEMP
(
self
):
'''
test the standard_name for physical parameter TEMP
'''
self
.
assertEqual
(
self
.
r
.
returnCode
(
'
TEMP
'
)[
'
standard_name
'
],
'
sea_water_temperature
'
)
self
.
assertEqual
(
self
.
r
.
returnCode
(
'
TEMP
'
)[
'
units
'
],
'
degree_Celsius
'
)
self
.
assertEqual
(
self
.
r
.
returnCode
(
'
TEMP
'
)[
'
comment
'
],
'
Ocean temperature in Degrees Celsius
'
)
def
test_key_PSAL
(
self
):
'''
test the standard_name for physical parameter PSAL
'''
self
.
assertEqual
(
self
.
r
.
returnCode
(
'
PSAL
'
)[
'
standard_name
'
],
'
sea_water_salinity
'
)
self
.
assertEqual
(
self
.
r
.
returnCode
(
'
PSAL
'
)[
'
units
'
],
'
1
'
)
self
.
assertEqual
(
self
.
r
.
returnCode
(
'
PSAL
'
)[
'
comment
'
],
'
Ocean practical salinity (PSS-78)
'
)
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment