diff --git a/tests/simple.py b/tests/simple.py deleted file mode 100755 index 95e4b98..0000000 --- a/tests/simple.py +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/python3 -from packit.local_project import LocalProject - -assert LocalProject(full_name="namespace/repository_name") - -print("Success", LocalProject) diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index f8905a7..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -- hosts: localhost - roles: - - role: standard-test-basic - tags: - - classic - required_packages: - - krb5-devel - - make - - python36 - - python3-devel - - python3-flexmock - - python3-packit - - python3-pytest - - python3-setuptools_scm - - python3-setuptools_scm_git_archive - - python3-tox - - rpm-libs - - redhat-rpm-config - tests: - - upstream: - dir: . - run: ./upstream.sh - - simple_app: - dir: . - run: ./simple.py diff --git a/tests/upstream.sh b/tests/upstream.sh deleted file mode 100755 index 6af5c3f..0000000 --- a/tests/upstream.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -set -ex - -PROJECT_NAME=packit -ORG=packit-service -PACKAGE_NAME=python3-$PROJECT_NAME -GITHUB=https://github.com/$ORG/$PROJECT_NAME.git - -WHERETOUNPACK=$PROJECT_NAME -FIND_VERSION=`rpm -q $PACKAGE_NAME | sed -r "s/.*-$PROJECT_NAME-(.*)\.[a-zA-Z0-9_]+$/\1/"` -VERSION="${FIND_VERSION%-*}" - -git clone $GITHUB $WHERETOUNPACK -( - cd $WHERETOUNPACK - git checkout tags/$VERSION -) -cp -rf $WHERETOUNPACK/tests tests -rm -rf $WHERETOUNPACK - -# Some tests call Git commands which need an identity configured -git config --global user.name "Packit Test Suite" -git config --global user.email "test@example.com" - -PYTHONPATH="$PYTHONPATH:." pytest-3 -v tests