Skip to content

Commit

Permalink
test: Convert trivial o* test cases to pytest+pexpect
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jul 1, 2018
1 parent 36f73ad commit 9ba87c3
Show file tree
Hide file tree
Showing 19 changed files with 58 additions and 123 deletions.
1 change: 0 additions & 1 deletion test/completion/objcopy.exp

This file was deleted.

1 change: 0 additions & 1 deletion test/completion/objdump.exp

This file was deleted.

1 change: 0 additions & 1 deletion test/completion/od.exp

This file was deleted.

1 change: 0 additions & 1 deletion test/completion/oggdec.exp

This file was deleted.

1 change: 0 additions & 1 deletion test/completion/opera.exp

This file was deleted.

1 change: 0 additions & 1 deletion test/completion/optipng.exp

This file was deleted.

20 changes: 0 additions & 20 deletions test/lib/completions/objcopy.exp

This file was deleted.

20 changes: 0 additions & 20 deletions test/lib/completions/objdump.exp

This file was deleted.

20 changes: 0 additions & 20 deletions test/lib/completions/od.exp

This file was deleted.

21 changes: 0 additions & 21 deletions test/lib/completions/oggdec.exp

This file was deleted.

18 changes: 0 additions & 18 deletions test/lib/completions/opera.exp

This file was deleted.

18 changes: 0 additions & 18 deletions test/lib/completions/optipng.exp

This file was deleted.

6 changes: 6 additions & 0 deletions test/t/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
EXTRA_DIST = \
conftest.py \
test_objcopy.py \
test_objdump.py \
test_od.py \
test_oggdec.py \
test_opera.py \
test_optipng.py \
test_pkgadd.py \
test_qemu.py \
test_qrunner.py \
Expand Down
8 changes: 8 additions & 0 deletions test/t/test_objcopy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pytest


class Test(object):

@pytest.mark.complete("objcopy ")
def test_(self, completion):
assert completion.list
8 changes: 8 additions & 0 deletions test/t/test_objdump.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pytest


class Test(object):

@pytest.mark.complete("objdump ")
def test_(self, completion):
assert completion.list
8 changes: 8 additions & 0 deletions test/t/test_od.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pytest


class Test(object):

@pytest.mark.complete("od ")
def test_(self, completion):
assert completion.list
12 changes: 12 additions & 0 deletions test/t/test_oggdec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import pytest


class Test(object):

@pytest.mark.complete("oggdec ")
def test_(self, completion):
assert completion.list

@pytest.mark.complete("oggdec --")
def test_dash(self, completion):
assert completion.list
8 changes: 8 additions & 0 deletions test/t/test_opera.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pytest


class Test(object):

@pytest.mark.complete("opera ")
def test_(self, completion):
assert completion.list
8 changes: 8 additions & 0 deletions test/t/test_optipng.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pytest


class Test(object):

@pytest.mark.complete("optipng ")
def test_(self, completion):
assert completion.list

0 comments on commit 9ba87c3

Please sign in to comment.