iker-python-common 1.0.21__tar.gz → 1.0.23__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/.github/workflows/push.yml +1 -1
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/PKG-INFO +1 -1
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker_python_common.egg-info/PKG-INFO +1 -1
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/argutils_test.py +1 -2
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/funcutils_test.py +1 -2
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/jsonutils_test.py +1 -2
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/randutils_test.py +1 -2
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/retry_test.py +8 -9
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/sequtils_test.py +2 -3
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/testutils_test.py +1 -2
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/.editorconfig +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/.github/workflows/pr.yml +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/.gitignore +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/MANIFEST.in +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/README.md +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/VERSION +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/pyproject.toml +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/config/config.cfg +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/csv/data.csv +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/csv/data.tsv +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.baz/file.bar.baz +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.baz/file.foo.bar +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.baz/file.foo.baz +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.bar.baz +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.foo.bar +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.foo.baz +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/file.bar +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/file.baz +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/file.foo +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/setup.cfg +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/setup.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/__init__.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/__init__.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/argutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/config.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/csv.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/dbutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/dockerutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/dtutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/funcutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/jsonutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/logger.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/numutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/randutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/retry.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/s3utils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/sequtils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/shutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/span.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/strutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/testutils.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker_python_common.egg-info/SOURCES.txt +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker_python_common.egg-info/dependency_links.txt +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker_python_common.egg-info/not-zip-safe +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker_python_common.egg-info/requires.txt +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker_python_common.egg-info/top_level.txt +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/__init__.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/config_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/csv_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/dbutils_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/dockerutils_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/dtutils_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/logger_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/numutils_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/s3utils_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/shutils_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/span_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/strutils_test.py +0 -0
- {iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/docker_fixtures.py +0 -0
|
@@ -2,7 +2,6 @@ import argparse
|
|
|
2
2
|
import unittest
|
|
3
3
|
|
|
4
4
|
import ddt
|
|
5
|
-
import pytest
|
|
6
5
|
|
|
7
6
|
from iker.common.utils.argutils import ParserTree
|
|
8
7
|
|
|
@@ -154,5 +153,5 @@ class ArgUtilsTest(unittest.TestCase):
|
|
|
154
153
|
)
|
|
155
154
|
@ddt.unpack
|
|
156
155
|
def test_parser_tree__exception(self, args):
|
|
157
|
-
with
|
|
156
|
+
with self.assertRaises(argparse.ArgumentError):
|
|
158
157
|
dummy_parser_tree().parse_args(args)
|
|
@@ -2,7 +2,6 @@ import unittest
|
|
|
2
2
|
from dataclasses import dataclass
|
|
3
3
|
|
|
4
4
|
import ddt
|
|
5
|
-
import pytest
|
|
6
5
|
|
|
7
6
|
from iker.common.utils.funcutils import lazy, memorized, singleton, unique_returns
|
|
8
7
|
from iker.common.utils.randutils import randomizer
|
|
@@ -373,5 +372,5 @@ class FuncUtilsTest(unittest.TestCase):
|
|
|
373
372
|
|
|
374
373
|
decorated_func = unique_returns(func, max_trials=10)
|
|
375
374
|
|
|
376
|
-
with
|
|
375
|
+
with self.assertRaises(ValueError):
|
|
377
376
|
[decorated_func(0, 10) for _ in range(11)]
|
|
@@ -6,7 +6,6 @@ from dataclasses import dataclass
|
|
|
6
6
|
from typing import SupportsFloat, SupportsInt
|
|
7
7
|
|
|
8
8
|
import ddt
|
|
9
|
-
import pytest
|
|
10
9
|
|
|
11
10
|
from iker.common.utils.jsonutils import asterisk, json_get, json_set
|
|
12
11
|
from iker.common.utils.jsonutils import json_compare
|
|
@@ -957,7 +956,7 @@ class JsonUtilsTest(unittest.TestCase):
|
|
|
957
956
|
({"set": set(), "object": object()},),
|
|
958
957
|
)
|
|
959
958
|
def test_json_reformat__unregistered_type(self, data):
|
|
960
|
-
with
|
|
959
|
+
with self.assertRaises(ValueError):
|
|
961
960
|
json_reformat(data)
|
|
962
961
|
|
|
963
962
|
@ddt.data(
|
|
@@ -2,7 +2,6 @@ import itertools
|
|
|
2
2
|
import unittest
|
|
3
3
|
|
|
4
4
|
import ddt
|
|
5
|
-
import pytest
|
|
6
5
|
|
|
7
6
|
from iker.common.utils.dtutils import dt_utc_max, dt_utc_min
|
|
8
7
|
from iker.common.utils.randutils import max_float, max_int, randomizer
|
|
@@ -43,7 +42,7 @@ class RandUtilsTest(unittest.TestCase):
|
|
|
43
42
|
self.assertTrue(lo <= randomizer().next_float(lo, hi) <= hi)
|
|
44
43
|
|
|
45
44
|
def test_next_float__assertion_error(self):
|
|
46
|
-
with
|
|
45
|
+
with self.assertRaises(AssertionError):
|
|
47
46
|
randomizer().next_float(-max_float(), max_float())
|
|
48
47
|
|
|
49
48
|
def test_random_string(self):
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/retry_test.py
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import unittest
|
|
2
2
|
|
|
3
3
|
import ddt
|
|
4
|
-
import pytest
|
|
5
4
|
|
|
6
5
|
from iker.common.utils import retry
|
|
7
6
|
|
|
@@ -40,7 +39,7 @@ class RetryTest(unittest.TestCase):
|
|
|
40
39
|
result.append(text)
|
|
41
40
|
raise ValueError("dummy value error")
|
|
42
41
|
|
|
43
|
-
with
|
|
42
|
+
with self.assertRaises(RuntimeError):
|
|
44
43
|
callee(content)
|
|
45
44
|
|
|
46
45
|
self.assertTrue(len(result) < retrials + 1)
|
|
@@ -59,7 +58,7 @@ class RetryTest(unittest.TestCase):
|
|
|
59
58
|
result.append(text)
|
|
60
59
|
raise ValueError("dummy value error")
|
|
61
60
|
|
|
62
|
-
with
|
|
61
|
+
with self.assertRaises(RuntimeError):
|
|
63
62
|
callee(content)
|
|
64
63
|
|
|
65
64
|
@ddt.data(
|
|
@@ -76,7 +75,7 @@ class RetryTest(unittest.TestCase):
|
|
|
76
75
|
result.append(text)
|
|
77
76
|
raise ValueError("dummy value error")
|
|
78
77
|
|
|
79
|
-
with
|
|
78
|
+
with self.assertRaises(RuntimeError):
|
|
80
79
|
callee(content)
|
|
81
80
|
|
|
82
81
|
self.assertEqual([content for _ in range(retrials + 1)], result)
|
|
@@ -103,7 +102,7 @@ class RetryTest(unittest.TestCase):
|
|
|
103
102
|
|
|
104
103
|
callee = Callee()
|
|
105
104
|
|
|
106
|
-
with
|
|
105
|
+
with self.assertRaises(RuntimeError):
|
|
107
106
|
retry.retry(wait=wait, retrials=retrials)(callee)(content)
|
|
108
107
|
|
|
109
108
|
self.assertEqual([content for _ in range(retrials + 1)], result)
|
|
@@ -124,7 +123,7 @@ class RetryTest(unittest.TestCase):
|
|
|
124
123
|
result.append(text)
|
|
125
124
|
raise ValueError("dummy value error")
|
|
126
125
|
|
|
127
|
-
with
|
|
126
|
+
with self.assertRaises(RuntimeError):
|
|
128
127
|
callee(content)
|
|
129
128
|
|
|
130
129
|
self.assertEqual([content for _ in range(retrials + 1)], result)
|
|
@@ -151,7 +150,7 @@ class RetryTest(unittest.TestCase):
|
|
|
151
150
|
|
|
152
151
|
callee = Callee()
|
|
153
152
|
|
|
154
|
-
with
|
|
153
|
+
with self.assertRaises(RuntimeError):
|
|
155
154
|
retry.retry_exponent(wait_exponent_init, wait_exponent_max, retrials)(callee)(content)
|
|
156
155
|
|
|
157
156
|
self.assertEqual([content for _ in range(retrials + 1)], result)
|
|
@@ -172,7 +171,7 @@ class RetryTest(unittest.TestCase):
|
|
|
172
171
|
result.append(text)
|
|
173
172
|
raise ValueError("dummy value error")
|
|
174
173
|
|
|
175
|
-
with
|
|
174
|
+
with self.assertRaises(RuntimeError):
|
|
176
175
|
callee(content)
|
|
177
176
|
|
|
178
177
|
self.assertEqual([content for _ in range(retrials + 1)], result)
|
|
@@ -199,7 +198,7 @@ class RetryTest(unittest.TestCase):
|
|
|
199
198
|
|
|
200
199
|
callee = Callee()
|
|
201
200
|
|
|
202
|
-
with
|
|
201
|
+
with self.assertRaises(RuntimeError):
|
|
203
202
|
retry.retry_random(wait_random_min, wait_random_max, retrials)(callee)(content)
|
|
204
203
|
|
|
205
204
|
self.assertEqual([content for _ in range(retrials + 1)], result)
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import unittest
|
|
2
2
|
|
|
3
3
|
import ddt
|
|
4
|
-
import pytest
|
|
5
4
|
|
|
6
5
|
from iker.common.utils.sequtils import batch_yield
|
|
7
6
|
from iker.common.utils.sequtils import chunk, chunk_between, chunk_with_key, merge_chunks
|
|
@@ -813,7 +812,7 @@ class SeqTest(unittest.TestCase):
|
|
|
813
812
|
self.assertEqual(seq(data).data, expect)
|
|
814
813
|
|
|
815
814
|
def test_builtin_init__unsupported_data_type(self):
|
|
816
|
-
with
|
|
815
|
+
with self.assertRaises(ValueError):
|
|
817
816
|
seq(object())
|
|
818
817
|
|
|
819
818
|
@ddt.data(
|
|
@@ -844,7 +843,7 @@ class SeqTest(unittest.TestCase):
|
|
|
844
843
|
self.assertEqual(actual.data, expect)
|
|
845
844
|
|
|
846
845
|
def test_builtin_getitem__unsupported_index_type(self):
|
|
847
|
-
with
|
|
846
|
+
with self.assertRaises(ValueError):
|
|
848
847
|
seq([])[object()]
|
|
849
848
|
|
|
850
849
|
@ddt.data(
|
|
@@ -5,7 +5,6 @@ from dataclasses import dataclass
|
|
|
5
5
|
from decimal import Decimal
|
|
6
6
|
|
|
7
7
|
import ddt
|
|
8
|
-
import pytest
|
|
9
8
|
|
|
10
9
|
from iker.common.utils.testutils import nested_approx, return_callee, throw_callee
|
|
11
10
|
|
|
@@ -403,5 +402,5 @@ class TestUtilsTest(unittest.TestCase):
|
|
|
403
402
|
def test_throw_callee(self):
|
|
404
403
|
callee = throw_callee(ValueError)
|
|
405
404
|
|
|
406
|
-
with
|
|
405
|
+
with self.assertRaises(ValueError):
|
|
407
406
|
callee(object())
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/config/config.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/file.bar
RENAMED
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/file.baz
RENAMED
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/resources/unittest/shutils/dir.foo/file.foo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker/common/utils/dockerutils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker_python_common.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/src/iker_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/config_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/csv_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/dbutils_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/dtutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/logger_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/s3utils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/shutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.21 → iker_python_common-1.0.23}/test/iker_tests/common/utils/span_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|