Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
maroba committed Apr 29, 2021
1 parent 717301b commit 8d17b6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import unittest
import unittest.mock
from pathlib import Path
import shutil
import os
import subprocess
import platform

from click.testing import CliRunner

Expand All @@ -16,6 +14,8 @@ class TestUtils(unittest.TestCase):
@unittest.mock.patch('manati.utils.os.environ.get')
def test_find_project_data_author_from_env(self, mock_env, mock_shell):
mock_shell.return_value = subprocess.run('blabla1234', shell=True)
if platform.system() == 'Windows':
self.assertTrue(True)

runner = CliRunner()
with runner.isolated_filesystem():
Expand Down

0 comments on commit 8d17b6d

Please sign in to comment.