Differential D5928 Diff 29382 python_modules/dagster/dagster_tests/general_tests/grpc_tests/test_compile.py
Changeset View
Changeset View
Standalone View
Standalone View
python_modules/dagster/dagster_tests/general_tests/grpc_tests/test_compile.py
import subprocess | import subprocess | ||||
import sys | import sys | ||||
import pytest | import pytest | ||||
@pytest.mark.skipif(sys.version_info < (3, 6), reason="black is not available for python < 3.6") | |||||
def test_compiled_protobuf(): | def test_compiled_protobuf(): | ||||
expected_status = subprocess.check_output(["git", "status", "--porcelain"]) | expected_status = subprocess.check_output(["git", "status", "--porcelain"]) | ||||
subprocess.check_output([sys.executable, "-m", "dagster.grpc.compile"]) | subprocess.check_output([sys.executable, "-m", "dagster.grpc.compile"]) | ||||
assert expected_status == subprocess.check_output(["git", "status", "--porcelain"]) | assert expected_status == subprocess.check_output(["git", "status", "--porcelain"]) |