-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CityOfZion/CU-864ej4a4d
Add a setup to execute a local Neo network on the boilerplate template
- Loading branch information
Showing
4 changed files
with
48 additions
and
19 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 |
---|---|---|
@@ -1 +1 @@ | ||
neo3-boa==0.13.1 | ||
neo3-boa==1.0.2 |
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 |
---|---|---|
@@ -1,7 +1,26 @@ | ||
from unittest import TestCase | ||
import unittest | ||
import os.path | ||
|
||
from boa3.boa3 import Boa3 | ||
from boa3_test.test_drive.testrunner.neo_test_runner import NeoTestRunner | ||
|
||
class TestHelloWorld(TestCase): | ||
PROJECT_PATH = os.sep.join(os.path.dirname(__file__).split(os.sep)[:-1]) | ||
|
||
def test_compile(self): | ||
class TestHelloWorld(unittest.TestCase): | ||
neoxp_config_file = PROJECT_PATH + '/default.neo-express' | ||
smart_contract_root_folder = PROJECT_PATH + '/smart_contracts' | ||
smart_contract_path = PROJECT_PATH + '/smart_contracts/hello_world.py' | ||
nef_path = smart_contract_path.replace('.py', '.nef') | ||
|
||
runner: NeoTestRunner = None | ||
|
||
@classmethod | ||
def setUpClass(cls): | ||
Boa3.compile_and_save(cls.smart_contract_path) | ||
cls.runner = NeoTestRunner(cls.neoxp_config_file) | ||
|
||
def test_method(self): | ||
pass | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |