-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install sc-meta when installing rust
- Loading branch information
Showing
4 changed files
with
56 additions
and
30 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
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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import shutil | ||
|
||
from multiversx_sdk_cli.cli import main | ||
from multiversx_sdk_cli.config import get_dependency_tag | ||
|
||
|
||
def test_deps_install_rust(): | ||
default_tag = get_dependency_tag("rust") | ||
return_code = main(["deps", "install", "rust", "--tag", default_tag]) | ||
if return_code: | ||
assert False | ||
else: | ||
assert True | ||
|
||
|
||
def test_deps_install_vmtools(): | ||
return_code = main(["deps", "install", "vmtools"]) | ||
if return_code: | ||
assert False | ||
else: | ||
assert True | ||
|
||
|
||
def test_deps_check_rust(): | ||
return_code = main(["deps", "check", "rust"]) | ||
if return_code: | ||
assert False | ||
else: | ||
assert True | ||
|
||
|
||
def test_check_sc_meta(): | ||
which_sc_meta = shutil.which("sc-meta") | ||
if which_sc_meta: | ||
assert True | ||
elif which_sc_meta is None: | ||
assert False | ||
|
||
|
||
def test_deps_check_vmtools(): | ||
return_code = main(["deps", "check", "vmtools"]) | ||
if return_code: | ||
assert False | ||
else: | ||
assert True |
This file was deleted.
Oops, something went wrong.