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)
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))
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())
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())
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())
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())
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)