Skip to content

Commit

Permalink
Fix pytests
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl committed Jul 17, 2024
1 parent 953852e commit 5f5039a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/api_connexion/schemas/test_xcom_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
XComCollection,
xcom_collection_item_schema,
xcom_collection_schema,
xcom_schema,
xcom_schema_string,
)
from airflow.models import DagRun, XCom
from airflow.utils.dates import parse_execution_date
Expand Down Expand Up @@ -199,7 +199,7 @@ def test_serialize(self, create_xcom, session):
value=pickle.dumps(b"test_binary"),
)
xcom_model = session.query(XCom).first()
deserialized_xcom = xcom_schema.dump(xcom_model)
deserialized_xcom = xcom_schema_string.dump(xcom_model)
assert deserialized_xcom == {
"key": "test_key",
"timestamp": self.default_time,
Expand All @@ -220,7 +220,7 @@ def test_deserialize(self):
"dag_id": "test_dag",
"value": b"test_binary",
}
result = xcom_schema.load(xcom_dump)
result = xcom_schema_string.load(xcom_dump)
assert result == {
"key": "test_key",
"timestamp": self.default_time_parsed,
Expand Down

0 comments on commit 5f5039a

Please sign in to comment.