-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9919a0c
commit cdec3c7
Showing
1 changed file
with
4 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,11 @@ def get_registry(): | |
return Registry(registry).read_file() | ||
|
||
|
||
def __get_fvdycore_component_without_remote(): | ||
def get_fvdycore_component(): | ||
comp = MepoComponent() | ||
comp.name = "fvdycore" | ||
comp.local = "./src/Components/@FVdycoreCubed_GridComp/@fvdycore" | ||
comp.remote = "https://github.com/GEOS-ESM/FVdycoreCubed_GridComp.git" | ||
comp.version = MepoVersion(name="geos/v1.3.0", type="t", detached=True) | ||
comp.sparse = None | ||
comp.develop = "geos/develop" | ||
|
@@ -31,23 +32,11 @@ def __get_fvdycore_component_without_remote(): | |
return comp | ||
|
||
|
||
def get_fvdycore_component_ssh(): | ||
comp = __get_fvdycore_component_without_remote() | ||
comp.remote = "[email protected]:GEOS-ESM/GFDL_atmos_cubed_sphere.git" | ||
return comp | ||
|
||
|
||
def get_fvdycore_component_https(): | ||
comp = __get_fvdycore_component_without_remote() | ||
comp.remote = "https://github.com/GEOS-ESM/FVdycoreCubed_GridComp.git" | ||
return comp | ||
|
||
|
||
def get_fvdycore_serialized(): | ||
return { | ||
"name": "fvdycore", | ||
"local": "./src/Components/@FVdycoreCubed_GridComp/@fvdycore", | ||
"remote": "git@github.com:GEOS-ESM/GFDL_atmos_cubed_sphere.git", | ||
"remote": "https://github.com/GEOS-ESM/FVdycoreCubed_GridComp.git", | ||
"version": ["geos/v1.3.0", "t", True], | ||
"sparse": None, | ||
"develop": "geos/develop", | ||
|
@@ -75,8 +64,5 @@ def test_MepoComponent(): | |
for name, comp in registry.items(): | ||
if name == "fvdycore": | ||
fvdycore = MepoComponent().registry_to_component(name, comp, None) | ||
assert ( | ||
fvdycore == get_fvdycore_component_ssh() | ||
or fvdycore == get_fvdycore_component_https() | ||
) | ||
assert fvdycore == get_fvdycore_component | ||
assert fvdycore.serialize() == get_fvdycore_serialized() |