示例#1
0
 def setUp(self):
     path = os.path.join(os.path.dirname(__file__), 'data',
                         'sushi_db1_missing_record_view.xml')
     with open(path, 'rb') as datafile:
         self.report = sushi._raw_to_full(datafile.read())
     # missing data only injected when making generic to write
     self.report.as_generic()
     self.databases = list(self.report)
示例#2
0
 def setUp(self):
     path = os.path.join(os.path.dirname(__file__),
                         'data', 'sushi_db1_missing_record_view.xml')
     with open(path, 'rb') as datafile:
         self.report = sushi._raw_to_full(datafile.read())
     # missing data only injected when making generic to write
     self.report.as_generic()
     self.databases = list(self.report)
示例#3
0
 def setUp(self):
     path = os.path.join(os.path.dirname(__file__),
                         'data', 'sushi_missing_jan.xml')
     with open(path, 'rb') as datafile:
         self.report = sushi._raw_to_full(datafile.read())
     self.publication = next(iter(self.report))
示例#4
0
 def setUp(self):
     path = os.path.join(os.path.dirname(__file__),
                         'data', 'sushi_simple.xml')
     with open(path, 'rb') as datafile:
         self.report = sushi._raw_to_full(datafile.read())
示例#5
0
 def setUp(self):
     path = os.path.join(os.path.dirname(__file__), "data", "sushi_simple_br1.xml")
     with open(path, "rb") as datafile:
         self.report = sushi._raw_to_full(datafile.read())
示例#6
0
 def setUp(self):
     path = os.path.join(os.path.dirname(__file__), 'data',
                         'sushi_simple_br1.xml')
     with open(path, 'rb') as datafile:
         self.report = sushi._raw_to_full(datafile.read())
示例#7
0
 def setUp(self):
     path = os.path.join(os.path.dirname(__file__), 'data',
                         'sushi_missing_jan.xml')
     with open(path, 'rb') as datafile:
         self.report = sushi._raw_to_full(datafile.read())
     self.publication = next(iter(self.report))
示例#8
0
 def setUp(self):
     path = os.path.join(
         os.path.dirname(__file__), "data", "sushi_simple_no_customer.xml"
     )
     with open(path, "rb") as datafile:
         self.report = sushi._raw_to_full(datafile.read())
示例#9
0
 def setUp(self):
     path = os.path.join(os.path.dirname(__file__), "data", "sushi_simple_db1.xml")
     with open(path, "rb") as datafile:
         self.report = sushi._raw_to_full(datafile.read())
     self.databases = list(self.report)