programming-formalisms / programming_formalisms_project_summer_2024

Learners' project of the Programming Formalisms course of summer 2024
GNU General Public License v3.0
0 stars 0 forks source link

Environment: Create Environment #25

Open richelbilderbeek opened 2 months ago

richelbilderbeek commented 2 months ago

In the class design document, the class in the title is mentioned. Create it!

Procedure

"""Simulation parameters."""

class SimulationParameters:

    """SimulationParameters holds the simulation's parameters."""
"""Tests all function in src.pf_example.simulation_parameters."""
import unittest

from src.pf_example.simulation_parameters import (
    SimulationParameters,
)

class TestSimulationParameters(unittest.TestCase):

    """Class to test the code in src.pf_example.simulation_parameters."""

    def test_can_create_params(self):
        """#14: Can construct a SimulationParameters."""
        SimulationParameters()

The test is that it works, not that it does anything useful.

Use the workflow that fits you best, ideally use a topic branch for this issue and merge to develop using a PR with code review.