diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/api/test_repository.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional/api/test_repository.py b/tests/functional/api/test_repository.py index dd70f10..a7c2917 100644 --- a/tests/functional/api/test_repository.py +++ b/tests/functional/api/test_repository.py @@ -36,9 +36,9 @@ def test_repository_files(project): } ) readme = project.files.get(file_path="README.rst", ref="main") - # The first decode() is the ProjectFile method, the second one is the bytes - # object method - assert readme.decode().decode() == "Initial content" + + assert readme.decode() == b"Initial content" + assert readme.decode("utf-8") == "Initial content" headers = project.files.head("README.rst", ref="main") assert headers["X-Gitlab-File-Path"] == "README.rst" |