Skip to content

Commit

Permalink
WPS609 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
morozsm committed Nov 20, 2020
1 parent 4cbc23c commit 92f5070
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_topalias.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import subprocess
import sys
import importlib
import pytest
import requests
from bs4 import BeautifulSoup
Expand Down Expand Up @@ -61,9 +62,10 @@ def test_command_line_interface():

def test_load_command_bank():
""" Test core load_command_bank() """
cli_path = importlib.util.find_spec("cli").origin
assert "Multiline" in subprocess.check_output(
sys.executable + f" {cli.__file__} -f 'topalias/data' --debug -z", shell=True
sys.executable + f" {cli_path} -f 'topalias/data' --debug -z", shell=True
).decode("UTF-8")
assert "Multiline" not in subprocess.check_output(
sys.executable + f" {cli.__file__} -f 'topalias/data' -z", shell=True
sys.executable + f" {cli_path} -f 'topalias/data' -z", shell=True
).decode("UTF-8")

0 comments on commit 92f5070

Please sign in to comment.