Gets rid of Appointment.serialize()

The method is replaced by signature_foramt in Cryptographer
This commit is contained in:
Sergi Delgado Segura
2019-12-09 13:31:06 +01:00
parent 589d24c472
commit dac9f56901
2 changed files with 0 additions and 14 deletions

View File

@@ -49,7 +49,3 @@ class Appointment:
def to_json(self): def to_json(self):
return json.dumps(self.to_dict(), sort_keys=True, separators=(",", ":")) return json.dumps(self.to_dict(), sort_keys=True, separators=(",", ":"))
def serialize(self):
# FIXME: This is temporary serialization. A proper one is required
return self.to_dict(include_triggered=False)

View File

@@ -110,13 +110,3 @@ def test_from_dict(appointment_data):
except ValueError: except ValueError:
appointment_data[key] = prev_val appointment_data[key] = prev_val
assert True assert True
# This test is pretty worthless atm, it would make sense once we have a proper serialize function
def test_serialize(appointment_data):
appointment = Appointment.from_dict(appointment_data)
assert appointment.triggered is False
ser_appointment = appointment.serialize()
assert ser_appointment == appointment.to_dict(include_triggered=False)