Skip to content

Commit 3c8d87d

Browse files
committed
Tests: move another batch to pytest
1 parent dc05032 commit 3c8d87d

13 files changed

+11
-20
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
*.pyo
33
*~
44
docs/_build
5+
tests/temp
6+
tests/data/pygccxml.cache
7+
tests/data/directory_cache_test
8+
tests/data/ogre.1.7.xml
59
unittests/temp
610
unittests/data/pygccxml.cache
711
unittests/data/directory_cache_test

tests/autoconfig.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
data_directory = os.path.join(this_module_dir_path, '../unittests', 'data')
1919
build_directory = os.path.join(this_module_dir_path, 'temp')
2020

21+
if not os.path.exists(build_directory):
22+
os.makedirs(build_directory)
23+
2124
sys.path.insert(1, os.path.join(os.curdir, '..'))
2225
# The tests are run on the parent pygccxml directory, not the one
2326
# in site-packages. Insert the directory's path.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

unittests/xmlfile_reader_tester.py renamed to tests/test_xmlfile_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, *args):
2020
self.__fname = 'core_types.hpp'
2121
# self.__fname = 'merge_free_functions.hpp'
2222

23-
def test(self):
23+
def test_read_xml_file(self):
2424
src_reader = parser.source_reader_t(self.config)
2525
src_decls = src_reader.read_file(self.__fname)
2626

0 commit comments

Comments
 (0)