File: test_slurm_instantiate.py

package info (click to toggle)
python-parsl 2025.01.13%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,072 kB
  • sloc: python: 23,817; makefile: 349; sh: 276; ansic: 45
file content (16 lines) | stat: -rw-r--r-- 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytest

from parsl.providers import SlurmProvider


@pytest.mark.local
def test_slurm_instantiate_regression_2994():
    """This test checks that repr can be executed on SlurmProvider.
    This does not need a SLURM installation around.

    Because of the behaviour of RepresentationMixin, it's a relatively
    common problem to break repr when adding new parameters to the
    SlurmProvider, and this tests that repr does not raise an exception.
    """
    p = SlurmProvider()
    repr(p)