Skip to content

Commit

Permalink
Add template for pytest framework
Browse files Browse the repository at this point in the history
  • Loading branch information
luktug-ltd committed Jan 14, 2025
1 parent 4c57b41 commit f1347c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyccx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
from .core import Connector, DOF, ElementSet, MeshSet, NodeSet, SurfaceSet
from .loadcase import LoadCaseType, LoadCase
from .results import ElementResult, NodalResult, ResultProcessor
from .version import __version__
from .version import __version__
13 changes: 13 additions & 0 deletions tests/core/test_core.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import sys
import math

import pytest
import pyccx
import trimesh
import numpy as np

class TestBasic:

def test_version(self):

assert pyccx.__version__

1 comment on commit f1347c5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyccx
   core.py1537750%9–12, 16, 20, 24, 28, 32–41, 48–50, 54, 59–64, 68–74, 83, 92–93, 100, 104, 107–111, 122–123, 130, 135, 139–145, 157–158, 166, 170, 174–179, 190–191, 199, 203, 207–212, 221–224, 231, 235, 242, 247–252, 256–264
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyccx/analysis
   analysis.py51338425%29–30, 57–60, 65, 70–73, 80, 85–88, 91, 103–104, 108, 113–118, 122–127, 139–141, 155, 160–163, 166–168, 196–225, 229, 239, 248, 259–260, 270, 279–282, 286, 295–299, 306, 310, 317, 321, 325, 329, 336, 340, 347, 351, 358–366, 376–425, 432, 436, 443, 447, 454, 458, 464, 470, 476, 483, 490–507, 511–520, 524–528, 533–543, 548–558, 562–571, 575–588, 595–599, 602–605, 608–617, 621–622, 626–630, 635–639, 649–662, 667–705, 712–717, 721, 730–745, 751–831, 835–841, 849–983
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyccx/bc
   boundarycondition.py31719937%36–46, 55, 59, 66, 70–73, 80, 84–87, 94, 98, 104, 110–113, 119–122, 128–131, 138, 142, 155–161, 164, 171, 175, 182, 186, 189–207, 220–225, 228, 235, 239, 243–261, 280–286, 289, 296, 300, 307, 311, 315–333, 349–358, 361, 368, 372, 379, 383, 387–414, 427–437, 440, 449–454, 461, 465, 472, 476–478, 482–496, 509–514, 517, 524, 528, 532–550, 562–565, 568, 580–586, 593, 597, 604, 608–611, 615–634
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyccx/loadcase
   loadcase.py1518345%53–80, 84, 91, 95, 103, 107–110, 118, 122, 129, 133, 140, 144, 151, 155, 163, 167, 174, 178, 185, 189, 196, 200, 214–220, 229–232, 242–248, 252–293
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyccx/material
   material.py17510441%17–20, 24–27, 31, 34, 39, 43, 50, 78–89, 101, 106, 111, 116, 123, 127, 141, 145, 157, 161, 173, 177, 183, 191, 195–198, 207, 212–215, 220, 224–244, 248–263, 276–300, 303, 307–326
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyccx/mesh
   elements.py1172479%21, 37, 122, 126, 130, 134, 138, 142, 146, 150, 155–162, 166, 171, 267–269, 279–283
   mesh.py615411%13–18, 28–39, 49–60, 72–120
   mesher.py75360120%27, 41, 74–93, 101–102, 108, 117–128, 136–141, 149–152, 163–183, 194–210, 215–233, 242–262, 274–279, 287–304, 311–314, 323–330, 338–340, 348–350, 360–361, 371–379, 389–396, 406–413, 422–426, 433, 439, 448, 460–493, 500–504, 511–513, 520–522, 529–530, 537–539, 543, 551–560, 568–569, 578–579, 582–584, 595–599, 609–610, 620–621, 632–634, 639–642, 652–655, 665–668, 675, 684–688, 699–702, 706–707, 715–763, 772, 779–788, 795–804, 814–817, 826–828, 837–840, 850–852, 860, 868–875, 884–894, 905–922, 932–945, 960–975, 984–1010, 1020–1028, 1037–1047, 1057–1067, 1076–1083, 1092–1099, 1103–1107, 1116–1120, 1124–1139, 1149–1226, 1241–1256, 1260–1327, 1333–1339, 1345–1351, 1357, 1366–1393, 1397–1410, 1419–1430, 1440–1446, 1452–1474, 1480, 1489–1496, 1505–1518, 1528–1541, 1551–1564, 1574–1587, 1592, 1605–1611, 1615–1664
   utils.py9189%3
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyccx/results
   results.py53940026%47, 54, 58, 62, 73–87, 92, 96, 103, 107, 114, 118, 125, 129, 136, 140, 147, 151, 158, 162, 171, 175, 182, 187–190, 193–231, 235–266, 277–288, 295, 299, 307, 311, 319, 323, 330, 337, 344, 348, 355, 359, 367, 372–375, 379–403, 438–444, 451, 459–462, 471–475, 491–522, 538–566, 569, 576, 583–584, 594–598, 612–658, 666–669, 675–676, 682–683, 689–690, 696–697, 703–704, 710–711, 715–719, 724–726, 733–743, 750–778, 784–910, 915–929, 932–934, 938–941, 945–948, 954–1019
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyccx/utils
   exporters.py1161087%18–52, 63–210
TOTAL2923203530% 

Tests Skipped Failures Errors Time
1 0 💤 0 ❌ 1 🔥 0.632s ⏱️

Please sign in to comment.