def update_match_report(dbo): """ Updates the latest version of the lost/found match report in the dbfs """ al.debug("updating lost/found match report", "lostfound.update_match_report", dbo) s = match_report(dbo) dbfs.put_string_filepath(dbo, "/reports/daily/lost_found_match.html", s)
def update_lookingfor_report(dbo): """ Updates the latest version of the looking for report in the dbfs """ al.debug("updating lookingfor report", "person.update_lookingfor_report", dbo) s = lookingfor_report(dbo) dbfs.put_string_filepath(dbo, "/reports/daily/lookingfor.html", s) configuration.lookingfor_last_match_count(dbo, lookingfor_last_match_count(dbo))
def test_file_exists(self): content = "123test" dbfs.put_string_filepath(base.get_dbo(), "/reports/test.txt", content) assert dbfs.file_exists(base.get_dbo(), "test.txt")
def test_put_string_filepath(self): content = "123test" dbfs.put_string_filepath(base.get_dbo(), "/reports/test.txt", content) assert content == dbfs.get_string_filepath(base.get_dbo(), "/reports/test.txt") dbfs.delete_filepath(base.get_dbo(), "/reports/test.txt")
def setUp(self): dbfs.put_string_filepath(base.get_dbo(), "/reports/nopic.jpg", "fake_jpg_image_data")