Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Commit

Permalink
Fixed unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
Domme, Sergej committed Sep 10, 2015
1 parent cf9029a commit 4390b25
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import unittest
import logging
import sys
from yamlreader import *
from yamlreader import data_merge
from yamlreader import data_merge, yaml_load, YamlReaderError


class Test(unittest.TestCase):
Expand Down Expand Up @@ -118,8 +116,4 @@ def test_fail_to_merge_string_to_dict(self):
self.assertRaises(YamlReaderError,data_merge,{1:2},"hello")

def test_fail_to_merge_list_to_dict(self):
self.assertRaises(YamlReaderError,data_merge,{1:2},[3,2])

if __name__ == "__main__":
# import sys;sys.argv = ['', 'Test.test_should_return_default_data_if_invalid_file_given']
unittest.main()
self.assertRaises(YamlReaderError,data_merge,{1:2},[3,2])

0 comments on commit 4390b25

Please sign in to comment.