Skip to content

Commit 4122fa2

Browse files
authored
Merge pull request #93 from sandialabs/move-to-old-test-structure
Brandon's testing preference.
2 parents 87d421b + 5fa05da commit 4122fa2

File tree

78 files changed

+37
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+37
-30
lines changed

.coveragerc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[run]
2+
omit = optimism/test/*
3+
optimism/contact/test/*
4+
optimism/inverse/test/*
5+
optimism/material/test/*
6+
optimism/phasefield/test/*
7+
optimism/treigen/test/*

.github/workflows/ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: pytest
3535
run: |
3636
pip install -e ".[sparse,test]"
37-
python -m pytest -n auto test --cov=optimism -Wignore
37+
python -m pytest -n auto optimism --cov=optimism -Wignore
3838
# we can also add the flag -n auto for parallel testing
3939
- name: codecov
4040
uses: codecov/codecov-action@v4
File renamed without changes.
File renamed without changes.

test/contact/test_Contact.py renamed to optimism/contact/test/test_Contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22
from optimism.JaxConfig import *
3-
from ..MeshFixture import MeshFixture
3+
from optimism.test.MeshFixture import MeshFixture
44
from optimism.contact import Contact
55
from optimism.contact import Friction
66
from optimism import Mesh

test/contact/test_Cpp.py renamed to optimism/contact/test/test_Cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from optimism.contact import EdgeCpp
77
from optimism import SmoothFunctions
8-
from ..TestFixture import TestFixture
8+
from optimism.test.TestFixture import TestFixture
99

1010
doPlotting=False
1111

test/contact/test_EdgeIntersection.py renamed to optimism/contact/test/test_EdgeIntersection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from optimism.JaxConfig import *
55
from optimism.contact import EdgeIntersection
6-
from ..TestFixture import TestFixture
6+
from optimism.test.TestFixture import TestFixture
77

88

99
class TestEdgeIntersection(TestFixture):

test/contact/test_LevelsetConstraint.py renamed to optimism/contact/test/test_LevelsetConstraint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from optimism.contact import Friction
1010
from optimism.contact import Levelset
1111
from optimism.contact import LevelsetConstraint
12-
from ..MeshFixture import MeshFixture, defaultProps
12+
from optimism.test.MeshFixture import MeshFixture, defaultProps
1313
from optimism import Mechanics
1414
from optimism import FunctionSpace
1515
from optimism import QuadratureRule

test/contact/test_MortarGeom.py renamed to optimism/contact/test/test_MortarGeom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ..TestFixture import *
1+
from optimism.test.TestFixture import *
22
from optimism import QuadratureRule
33
from optimism.contact import MortarContact
44
import jax

test/contact/test_NewtonGlobalization.py renamed to optimism/contact/test/test_NewtonGlobalization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from numpy.random import rand
22

33
from optimism.JaxConfig import *
4-
from ..TestFixture import *
4+
from optimism.test.TestFixture import *
55
from optimism.NewtonSolver import *
66
from optimism import AlSolver
77
from optimism.Objective import Objective

0 commit comments

Comments
 (0)