aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test_api.py
blob: c9e9bff1003d3b4a5cb12f02aa27b2c6e10d24bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from ipm import api

import shutil


def test_new():
    api.new("test")
    shutil.rmtree("test", ignore_errors=True)


def test_build():
    api.new("test")
    api.build("test")
    shutil.rmtree("test", ignore_errors=True)


def test_extract():
    api.new("test")
    api.build("test")
    api.extract("./test/dist/test-0.1.0.ipk")
    shutil.rmtree("test", ignore_errors=True)


def test_check():
    api.new("test")
    api.check("test")
    shutil.rmtree("test", ignore_errors=True)