Skip to content

Commit

Permalink
Merge pull request #96 from convexengineering/issue_94
Browse files Browse the repository at this point in the history
GPkit compatibility for run_tests.py
  • Loading branch information
pgkirsch committed Jul 6, 2021
2 parents 9b4f7b2 + 9045b8e commit cf33ca1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gpfit/tests/t_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import unittest
import os
from gpkit.tests.helpers import generate_example_tests
from gpkit import settings


class TestExamples(unittest.TestCase):
Expand Down Expand Up @@ -37,7 +38,8 @@ def test_hoburgabbeel_ex6_1(self, example):
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
EXAMPLE_DIR = os.path.abspath(FILE_DIR + '../../../docs/source/examples')
# use gpkit.tests.helpers.generate_example_tests default: only default solver
TESTS = generate_example_tests(EXAMPLE_DIR, [TestExamples])
TESTS = generate_example_tests(EXAMPLE_DIR, [TestExamples],
settings["installed_solvers"])


if __name__ == "__main__":
Expand Down

0 comments on commit cf33ca1

Please sign in to comment.