Page MenuHomeDevCentral

D2576.id.diff
No OneTemporary

D2576.id.diff

diff --git a/_tests/modules/test_forest.py b/_tests/modules/test_forest.py
old mode 100644
new mode 100755
--- a/_tests/modules/test_forest.py
+++ b/_tests/modules/test_forest.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from importlib.machinery import SourceFileLoader
import unittest
diff --git a/_tests/modules/test_jails.py b/_tests/modules/test_jails.py
old mode 100644
new mode 100755
--- a/_tests/modules/test_jails.py
+++ b/_tests/modules/test_jails.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from importlib.machinery import SourceFileLoader
import unittest
diff --git a/_tests/modules/test_nano.py b/_tests/modules/test_nano.py
old mode 100644
new mode 100755
--- a/_tests/modules/test_nano.py
+++ b/_tests/modules/test_nano.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from importlib.machinery import SourceFileLoader
import unittest
diff --git a/_tests/modules/test_network.py b/_tests/modules/test_network.py
old mode 100644
new mode 100755
--- a/_tests/modules/test_network.py
+++ b/_tests/modules/test_network.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from importlib.machinery import SourceFileLoader
from unittest_data_provider import data_provider
import unittest
diff --git a/_tests/modules/test_node.py b/_tests/modules/test_node.py
old mode 100644
new mode 100755
--- a/_tests/modules/test_node.py
+++ b/_tests/modules/test_node.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from importlib.machinery import SourceFileLoader
import unittest
@@ -101,3 +103,7 @@
"[::1] [2001:470:1f13:ce7:ca5:cade:fab:1e] [2001:470:1f12:ce7::2]",
node.get_ipv6_list(),
)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/_tests/modules/test_paas_docker.py b/_tests/modules/test_paas_docker.py
old mode 100644
new mode 100755
--- a/_tests/modules/test_paas_docker.py
+++ b/_tests/modules/test_paas_docker.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from importlib.machinery import SourceFileLoader
import unittest
@@ -51,3 +53,7 @@
self.grains["id"] = "voidserver"
self.assertEqual(expected, docker.get_subnets())
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/_tests/modules/test_rust.py b/_tests/modules/test_rust.py
old mode 100644
new mode 100755
--- a/_tests/modules/test_rust.py
+++ b/_tests/modules/test_rust.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from importlib.machinery import SourceFileLoader
import unittest
@@ -11,3 +13,7 @@
triplet = rust.get_rustc_triplet()
self.assertTrue(len(triplet.split("-")) > 2)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/_tests/pillar/core/test_users.py b/_tests/pillar/core/test_users.py
old mode 100644
new mode 100755
--- a/_tests/pillar/core/test_users.py
+++ b/_tests/pillar/core/test_users.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
import unittest
import yaml
@@ -32,3 +34,7 @@
is_valid = False
self.assertTrue(is_valid, "\n" + "\n".join(errors))
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/_tests/pillar/paas/test_docker.py b/_tests/pillar/paas/test_docker.py
old mode 100644
new mode 100755
--- a/_tests/pillar/paas/test_docker.py
+++ b/_tests/pillar/paas/test_docker.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
import unittest
import yaml
@@ -20,3 +22,7 @@
entry = ":".join(["docker_containers", node, service, instance])
self.assertIn("app_port", container, entry + ": app_port missing")
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/_tests/scripts/python/test_clear_video_queue.py b/_tests/scripts/python/test_clear_video_queue.py
old mode 100644
new mode 100755
--- a/_tests/scripts/python/test_clear_video_queue.py
+++ b/_tests/scripts/python/test_clear_video_queue.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from importlib.machinery import SourceFileLoader
import unittest
@@ -13,3 +15,7 @@
expected_pids = [11562, 11693, 11895]
self.assertEqual(expected_pids, script.extract_pids(ps_data))
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/_tests/scripts/python/test_edit_acme_dns_accounts.py b/_tests/scripts/python/test_edit_acme_dns_accounts.py
old mode 100644
new mode 100755
--- a/_tests/scripts/python/test_edit_acme_dns_accounts.py
+++ b/_tests/scripts/python/test_edit_acme_dns_accounts.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
from importlib.machinery import SourceFileLoader
import os
import unittest

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 03:26 (1 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259441
Default Alt Text
D2576.id.diff (4 KB)

Event Timeline