From 5b458c630ecf196bfeb9dbfac4846fab1837ca29 Mon Sep 17 00:00:00 2001 From: izzy lyseggen Date: Tue, 19 Jan 2021 09:26:05 +0000 Subject: [PATCH] test(commits): cleanup --- tests/test_commit.py | 5 ++--- tests/test_objects.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_commit.py b/tests/test_commit.py index 2201aa2..dbb8b7b 100644 --- a/tests/test_commit.py +++ b/tests/test_commit.py @@ -19,12 +19,11 @@ def stream_id(client): def test_create(client, stream_id, commit): - commit_id = client.commit.create( + commit.id = client.commit.create( stream_id=stream_id, object_id="object123", message=commit.message ) - commit.id = commit_id - assert isinstance(commit_id, str) + assert isinstance(commit.id, str) def test_get(client, stream_id, commit): diff --git a/tests/test_objects.py b/tests/test_objects.py index 5871ed8..bb377e8 100644 --- a/tests/test_objects.py +++ b/tests/test_objects.py @@ -1 +1 @@ -import pytest +import pytest \ No newline at end of file