Skip to content

Commit

Permalink
Fix import path
Browse files Browse the repository at this point in the history
  • Loading branch information
iranzo committed Aug 22, 2024
1 parent 4d4a7c9 commit a57e732
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 26 deletions.
13 changes: 7 additions & 6 deletions tests/cf-uts/test_cf_is_active.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import shutil
import subprocess
import sys
import tempfile
from unittest import TestCase

import risuclient.shell as risu

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../"))
sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../" + "../"))

try:
import risuclient.shell as risu
except:
import shell as risu

# To create your own test, update NAME with plugin name and copy this file to test_$NAME.py
NAME = "test_cf_is_active"
Expand Down
8 changes: 5 additions & 3 deletions tests/cf-uts/test_cf_is_lineinfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
import tempfile
from unittest import TestCase

import risuclient.shell as risu

sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../"))
sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../" + "../"))

try:
import risuclient.shell as risu
except:
import shell as risu

# To create your own test, update NAME with plugin name and copy this file to test_$NAME.py
NAME = "test_cf_is_lineinfile"
Expand Down
13 changes: 7 additions & 6 deletions tests/cf-uts/test_cf_is_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import shutil
import subprocess
import sys
import tempfile
from unittest import TestCase

import risuclient.shell as risu

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../"))
sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../" + "../"))

try:
import risuclient.shell as risu
except:
import shell as risu

# To create your own test, update NAME with plugin name and copy this file to test_$NAME.py
NAME = "test_cf_is_process"
Expand Down
8 changes: 5 additions & 3 deletions tests/cf-uts/test_cf_is_required_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
import tempfile
from unittest import TestCase

import risuclient.shell as risu

sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../"))
sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../" + "../"))

try:
import risuclient.shell as risu
except:
import shell as risu

# To create your own test, update NAME with plugin name and copy this file to test_$NAME.py
NAME = "test_cf_is_required_file"
Expand Down
13 changes: 7 additions & 6 deletions tests/cf-uts/test_cf_is_required_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import shutil
import subprocess
import sys
import tempfile
from unittest import TestCase

import risuclient.shell as risu

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../"))
sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../" + "../"))

try:
import risuclient.shell as risu
except:
import shell as risu

# To create your own test, update NAME with plugin name and copy this file to test_$NAME.py
NAME = "test_cf_is_required_rpm"
Expand Down
7 changes: 5 additions & 2 deletions tests/cf-uts/test_cf_is_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@
import tempfile
from unittest import TestCase

import risuclient.shell as risu
sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../" + "../"))

sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../"))

try:
import risuclient.shell as risu
except:
import shell as risu

# To create your own test, update NAME with plugin name and copy this file to test_$NAME.py
NAME = "test_cf_is_rpm"
Expand Down

0 comments on commit a57e732

Please sign in to comment.