Skip to content
Snippets Groups Projects
Commit a9ed00f3 authored by Hamish Graham's avatar Hamish Graham
Browse files

Update test_tree_maker.py

parent 9f65f0a6
No related branches found
No related tags found
No related merge requests found
Pipeline #3019129 passed
...@@ -11,18 +11,18 @@ def test_method1(): ...@@ -11,18 +11,18 @@ def test_method1():
def test_sum_is_five(): def test_sum_is_five():
assert nj.sum_is_five(1, 4) == True assert nj.sum_is_five(1, 4) == True
def test_tag_first(): #def test_tag_first():
tag.tag_first('example_file.yaml', 'hello') # tag.tag_first('example_file.yaml', 'hello')
a = tag.read_yaml('example_file.yaml') # a = tag.read_yaml('example_file.yaml')
b = tag.convert_to_dict(a) # b = tag.convert_to_dict(a)
assert b['0']['tag'] == 'hello' # assert b['0']['tag'] == 'hello'
def test_tag_it(): #def test_tag_it():
tag.tag_first('example_file.yaml', 'hello') # tag.tag_first('example_file.yaml', 'hello')
tag.tag_it('example_file.yaml', 'bonjour') # tag.tag_it('example_file.yaml', 'bonjour')
a = tag.read_yaml('example_file.yaml') # a = tag.read_yaml('example_file.yaml')
b = tag.convert_to_dict(a) # b = tag.convert_to_dict(a)
assert b['1']['tag'] == 'bonjour' # assert b['1']['tag'] == 'bonjour'
def write_yaml(): def write_yaml():
tag.write_yaml({'green': 'hello'}, ('mytest.yaml')) tag.write_yaml({'green': 'hello'}, ('mytest.yaml'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment