forked from amazon-far/holosoma
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
24 lines (19 loc) · 742 Bytes
/
conftest.py
File metadata and controls
24 lines (19 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""Pytest configuration to ensure proper import order for isaacgym compatibility."""
# Import torch safely before any isaacgym imports during test collection
from holosoma.utils.safe_torch_import import torch # noqa: F401
def mark_str(marker, msg):
return f"{marker}: marks tests as requiring {msg} (deselect with '-m \"not {marker}\"')"
def pytest_configure(config):
"""Register custom markers for pytest."""
config.addinivalue_line(
"markers",
mark_str("isaacsim", "Isaac Sim"),
)
config.addinivalue_line(
"markers",
mark_str("multi_gpu", "multiple GPUs"),
)
config.addinivalue_line(
"markers",
mark_str("requires_inference", "inference environment"),
)