Skip to content

Commit

Permalink
tests: amend docstrings
Browse files Browse the repository at this point in the history
* Amend false docstrings.
* Rename a couple of modules.
  • Loading branch information
oliver-sanders committed Nov 1, 2023
1 parent 9bef3c8 commit b993900
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 21 deletions.
5 changes: 3 additions & 2 deletions cylc/rose/platform_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
# You should have received a copy of the GNU General Public License
# along with Rose. If not, see <http://www.gnu.org/licenses/>.
# -----------------------------------------------------------------------------
"""Interfaces for Cylc Platforms for use by rose apps.
"""

"""Interfaces for Cylc Platforms for use by rose apps."""

from optparse import Values
import sqlite3
import subprocess
Expand Down
4 changes: 1 addition & 3 deletions cylc/rose/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""Cylc support for reading and interpreting ``rose-suite.conf`` workflow
configuration files.
"""
"""Cylc support for reading and interpreting ``rose-suite.conf`` files."""

import itertools
import os
Expand Down
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Functional tests for top-level function record_cylc_install_options and
"""

from types import SimpleNamespace

Expand Down
1 change: 1 addition & 0 deletions tests/functional/test_ROSE_ORIG_HOST.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with Rose. If not, see <http://www.gnu.org/licenses/>.
# -----------------------------------------------------------------------------

"""
Tests for cylc.rose.stem
========================
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/test_pre_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Functional tests for top-level function record_cylc_install_options and
"""

"""Test pre_configure entry point."""

from itertools import product
import os
Expand Down
1 change: 1 addition & 0 deletions tests/functional/test_reinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""Functional tests for reinstalling of config files.
This test does the following:
Expand Down
1 change: 1 addition & 0 deletions tests/functional/test_reinstall_clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""Functional tests for reinstalling of config files.
This test does the following:
Expand Down
4 changes: 3 additions & 1 deletion tests/functional/test_reinstall_fileinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Cylc reinstall is able to use the async fileinstall from rose without

"""
Ensure Cylc reinstall is able to use the async fileinstall from rose without
trouble.
"""

Expand Down
4 changes: 2 additions & 2 deletions tests/functional/test_rose_fileinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Functional tests for top-level function record_cylc_install_options and
"""

"""Functional tests for Rose file installation."""

from pathlib import Path
import shutil
Expand Down
1 change: 1 addition & 0 deletions tests/functional/test_rose_stem.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Rose. If not, see <http://www.gnu.org/licenses/>.
# -----------------------------------------------------------------------------

"""
Tests for cylc.rose.stem
========================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Functional tests for top-level function cylc.rose.entry points
copy_config_file.
"""

"""Unit tests for utilities."""

from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions tests/functional/test_validate_no_rose_ignore_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""Functional Test: It ignores commented items in rose-suite.conf
See https://github.com/cylc/cylc-rose/pull/171
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_config_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""Tests the plugin with Rose suite configurations via the Python API."""

from types import SimpleNamespace
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_config_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""Tests the plugin with Rose suite configurations on the filesystem."""

from io import StringIO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Functional tests for top-level function record_cylc_install_options and
"""

"""Unit tests for Rose file installation."""

from pathlib import Path
import shutil
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_functional_post_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""Functional tests for top-level function record_cylc_install_options and
rose_fileinstall
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_platform_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Rose. If not, see <http://www.gnu.org/licenses/>.
# -----------------------------------------------------------------------------
"""Tests for platform utils module:
"""

"""Tests for platform utils module."""

import os
from pathlib import Path
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_rose_stem_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Functional tests for top-level function record_cylc_install_options and
"""

"""Unit tests for Rose Stem."""

from types import SimpleNamespace
from typing import Any, Tuple
Expand Down

0 comments on commit b993900

Please sign in to comment.