Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(composer): fix unit test and add tear down
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Jul 16, 2019
1 parent 6ec4233 commit 743ec3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gnes/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def set_composer_parser(parser=None):
parser.add_argument('--yaml_path', type=argparse.FileType('r'),
help='yaml config of the service')
parser.add_argument('--html_path', type=argparse.FileType('w', encoding='utf8'),
help='render the network graph in HTML with mermaid.js')
help='output path of the HTML file, will contain all possible generations')
parser.add_argument('--shell_path', type=argparse.FileType('w', encoding='utf8'),
help='output path of the shell-based starting script')
parser.add_argument('--swarm_path', type=argparse.FileType('w', encoding='utf8'),
Expand Down
6 changes: 3 additions & 3 deletions tests/test_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def _test_topology(self, yaml_path: str, num_layer_before: int, num_layer_after:
os.path.exists(self.html_path)
print(a.build_dockerswarm(r))

# def tearDown(self):
# if os.path.exists(self.html_path):
# os.remove(self.html_path)
def tearDown(self):
if os.path.exists(self.html_path):
os.remove(self.html_path)

0 comments on commit 743ec3b

Please sign in to comment.