mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
Delay import of freeze to make tests run (#1617)
* Delay import of freeze to make tests run * fix flake8 error
This commit is contained in:
parent
6419339094
commit
8056ac5393
@ -2,13 +2,14 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import pytest
|
import pytest
|
||||||
from pip.operations import freeze
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip(reason="This test needs some love")
|
@pytest.mark.skip(reason="This test needs some love")
|
||||||
def test_env_matches_requirements_txt():
|
def test_env_matches_requirements_txt():
|
||||||
|
from pip.operations import freeze
|
||||||
|
|
||||||
def check_is_in(src, dests):
|
def check_is_in(src, dests):
|
||||||
if src not in dests:
|
if src not in dests:
|
||||||
print("%s not in" % src)
|
print("%s not in" % src)
|
||||||
|
Loading…
Reference in New Issue
Block a user