Skip to content

Commit 86d7c13

Browse files
committed
convert class based tests to pytest
1 parent d8b1a16 commit 86d7c13

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/unit/stage/test_stage.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import signal
33
import subprocess
44
import threading
5-
from unittest import TestCase
65

76
import mock
87
import pytest
@@ -50,12 +49,11 @@ def test_meta_ignored():
5049
assert stage.compute_md5() == "e9521a22111493406ea64a88cda63e0b"
5150

5251

53-
class TestPathConversion(TestCase):
54-
def test(self):
55-
stage = Stage(None, "path")
52+
def test_path_conversion(dvc):
53+
stage = Stage(dvc, "path")
5654

57-
stage.wdir = os.path.join("..", "..")
58-
self.assertEqual(stage.dumpd()["wdir"], "../..")
55+
stage.wdir = os.path.join("..", "..")
56+
assert stage.dumpd()["wdir"] == "../.."
5957

6058

6159
def test_stage_update(mocker):

0 commit comments

Comments
 (0)