Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 15, 2022
1 parent 43afb8d commit f55674f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/test_scarcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,28 @@
import os
import tempfile
import yaml
import json
from mock import patch

sys.path.append("..")
sys.path.append(".")

from scar.scarcli import main
from scar.parser.cfgfile import ConfigFileParser, _DEFAULT_CFG
from scar.utils import FileUtils


class TestSCARCli(unittest.TestCase):

def __init__(self, *args):
unittest.TestCase.__init__(self, *args)

def setUp(self):
if not FileUtils.is_file(ConfigFileParser.config_file_path):
FileUtils.create_folder(ConfigFileParser.config_file_folder)
FileUtils.create_file_with_content(ConfigFileParser.config_file_path,
json.dumps(_DEFAULT_CFG, indent=2))

@patch('scar.scarcli.AWS')
@patch('scar.scarcli.OSCAR')
def test_main(self, oscar, aws):
Expand Down

0 comments on commit f55674f

Please sign in to comment.