Moved fixture constants to tests.fixtures.

This commit is contained in:
Jakub Roztocil
2014-04-24 15:17:04 +02:00
parent b880e996d0
commit 941c0a8c3c
9 changed files with 49 additions and 59 deletions

View File

@ -1,18 +1,18 @@
from unittest import TestCase
import pytest
from httpie.compat import is_windows
from httpie.output import BINARY_SUPPRESSED_NOTICE
from tests import (
http, httpbin, skipIf,
TestEnvironment,
BIN_FILE_CONTENT, BIN_FILE_PATH
)
from tests import http, httpbin, TestEnvironment
from tests.fixtures import BIN_FILE_CONTENT, BIN_FILE_PATH
class StreamTest(TestCase):
# GET because httpbin 500s with binary POST body.
@skipIf(is_windows, 'Pretty redirect not supported under Windows')
@pytest.mark.skipif(is_windows,
reason='Pretty redirect not supported under Windows')
def test_pretty_redirected_stream(self):
"""Test that --stream works with prettified redirected output."""
with open(BIN_FILE_PATH, 'rb') as f: