Skip to content

Commit

Permalink
Simplify testing (#77)
Browse files Browse the repository at this point in the history
* Test with a plain python package
* No extension needed
  • Loading branch information
BenjaminRodenberg authored Dec 29, 2020
1 parent 204af06 commit 51844a7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
10 changes: 0 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@ def get_extensions(is_test):
compile_args.append("-I{}".format(numpy.get_include()))

bindings_sources = [os.path.join(PYTHON_BINDINGS_PATH, "cyprecice", "cyprecice" + ".pyx")]
test_sources = [os.path.join(PYTHON_BINDINGS_PATH, "test", "test_bindings_module" + ".pyx")]

if not is_test:
link_args.append("-lprecice")
if is_test:
bindings_sources.append(os.path.join(PYTHON_BINDINGS_PATH, "test", "SolverInterface.cpp"))
test_sources.append(os.path.join(PYTHON_BINDINGS_PATH, "test", "SolverInterface.cpp"))

return [
Extension(
Expand All @@ -79,14 +77,6 @@ def get_extensions(is_test):
language="c++",
extra_compile_args=compile_args,
extra_link_args=link_args
),
Extension(
"test_bindings_module",
sources=test_sources,
libraries=[],
language="c++",
extra_compile_args=compile_args,
extra_link_args=link_args
)
]

Expand Down
10 changes: 0 additions & 10 deletions test/test_bindings.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# distutils: language = c++

# comments on test layout: https://docs.pytest.org/en/latest/goodpractices.html
# run with python -m unittest tests.test_fenicsadapter

import precice
from unittest import TestCase
import numpy as np
Expand Down

0 comments on commit 51844a7

Please sign in to comment.