File: test_defaults.py

package info (click to toggle)
python-es-client 8.17.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 520 kB
  • sloc: python: 2,452; sh: 239; makefile: 17
file content (23 lines) | stat: -rw-r--r-- 572 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Test functions in es_client.defaults"""

from unittest import TestCase
from es_client.defaults import (
    CLIENT_SETTINGS,
    OTHER_SETTINGS,
    client_settings,
    other_settings,
)


class TestSettings(TestCase):
    """
    Ensure test coverage of simple functions that might be deprecated in the future
    """

    def test_client_settings(self):
        """Ensure matching output"""
        assert CLIENT_SETTINGS == client_settings()

    def test_other_settings(self):
        """Ensure matching output"""
        assert OTHER_SETTINGS == other_settings()