Skip to content

Commit

Permalink
+ Fixed bug with object definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Genarito committed Jul 30, 2021
1 parent 5ddb30e commit d41d7ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/objects/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def test_invalid_2(self):
with self.assertRaises(InvalidIndentationError):
self.__get_file_parsed_data('invalid_2.ura')

def test_invalid_3(self):
"""Tests parsing error in invalid objects"""
with self.assertRaises(ParseError):
self.__get_file_parsed_data('invalid_3.ura')


if __name__ == '__main__':
unittest.main()
3 changes: 3 additions & 0 deletions tests/objects/tests-files/invalid_3.ura
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test:
"invalid object"
test_2: 5

0 comments on commit d41d7ea

Please sign in to comment.