Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
budzianowski committed Jun 5, 2024
1 parent 9ec5f55 commit 3795b83
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.idea/
__pycache__/
*.egg-info/
logs/
None/
dist/
.pytest_cache/
.DS_Store
loco_mujoco/datasets/
mushroom_rl_recordings/
record_all/
_build/

8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,11 @@ static-checks:
@black --diff --check src
@ruff check src
.PHONY: lint

# ------------------------ #
# Unit tests #
# ------------------------ #

test:
python -m pytest
.PHONY: test
Binary file removed src/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ wheel==0.43.0
black==24.4.2
ruff==0.4.6
isort==5.13.2
pytest==8.2.2
15 changes: 15 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""Defines PyTest configuration for the project."""

import random

import pytest
from _pytest.python import Function


@pytest.fixture(autouse=True)
def set_random_seed() -> None:
random.seed(1337)


def pytest_collection_modifyitems(items: list[Function]) -> None:
items.sort(key=lambda x: x.get_closest_marker("slow") is not None)
12 changes: 12 additions & 0 deletions tests/test_dummy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Defines a dummy test."""

import pytest


def test_dummy() -> None:
assert True


@pytest.mark.slow
def test_slow() -> None:
assert True

0 comments on commit 3795b83

Please sign in to comment.