Exemplo n.º 1
0
 def test_load_json_falty_file(self):
     with pytest.raises(ValueError):
         Tables('imp_tables.py')
Exemplo n.º 2
0
 def test_load_json_no_file(self):
     with pytest.raises(IOError):
         Tables('dont_exists.json')
Exemplo n.º 3
0
 def setup(self):
     self.res = Responce(Tables(), Package(), DataTypes())
Exemplo n.º 4
0
 def setup(self):
     with open('tests/test_tables.json') as js:
         self.j = json.load(js)
     self.t = Tables()
Exemplo n.º 5
0
 def setup(self):
     self.cmd = Command(Tables(), Package(), DataTypes())