Skip to content

Commit 3030a9a

Browse files
authored
Merge pull request #6 from DeepLabCut/stes/fix-tests
2 parents 4ea7f02 + dd5c8ea commit 3030a9a

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

scripts/encrypt_groundtruth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from cryptography.fernet import Fernet
99

10-
import benchmark._crypt
10+
import deeplabcut.benchmark._crypt
1111

1212
def key_type(arg):
1313
if os.path.exists(arg) and os.path.isfile(arg):
@@ -34,7 +34,7 @@ def key_type(arg):
3434
)
3535
)
3636
for file in files:
37-
benchmark._crypt.encrypt(file, args.key)
37+
deeplabcut.benchmark._crypt.encrypt(file, args.key)
3838
if args.store is None:
3939
print(
4040
f"Encrypted using key: {args.key.decode()}\n"

tests/_dlc_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from deeplabcut.pose_estimation_tensorflow.core import evaluate_multianimal
1717
from deeplabcut.utils.conversioncode import guarantee_multiindex_rows
1818

19-
import benchmark.utils
19+
import deeplabcut.benchmark.utils
2020

2121
MULTI_KEYPOINTS = {
2222
"trimouse": (

tests/encrypt.py

Whitespace-only changes.

tests/test_base.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import benchmark
2-
import benchmark.base
1+
import deeplabcut.benchmark
2+
import deeplabcut.benchmark.base
33

44
def test_result():
5-
result = benchmark.base.Result("foo", "bar")
5+
result = deeplabcut.benchmark.base.Result("foo", "bar")
66
restored = result.fromdict(result.todict())
77
assert restored == result
8-
assert result.benchmark_version == benchmark.__version__
8+
assert result.benchmark_version == deeplabcut.__version__
99

1010
def test_collection():
1111

12-
collection = benchmark.base.ResultCollection()
12+
collection = deeplabcut.benchmark.base.ResultCollection()
1313

14-
result1 = benchmark.base.Result("foo", "bar", root_mean_squared_error=42)
15-
result2 = benchmark.base.Result("foo", "baz")
16-
result_dup = benchmark.base.Result("foo", "bar", root_mean_squared_error=43)
14+
result1 = deeplabcut.benchmark.base.Result("foo", "bar", root_mean_squared_error=42)
15+
result2 = deeplabcut.benchmark.base.Result("foo", "baz")
16+
result_dup = deeplabcut.benchmark.base.Result("foo", "bar", root_mean_squared_error=43)
1717

1818
assert len(collection) == 0
1919
collection.add(result1)

0 commit comments

Comments
 (0)