mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
tor: Minor fixes
- Be a little bit more strict about Tor tests by requiring the module to be importable even when not running as root.
This commit is contained in:
parent
b96bb9d2cd
commit
7100429342
@ -16,15 +16,15 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Tests for tor module.
|
Tests for Tor module.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
from ..tor import is_apt_transport_tor_enabled, get_hs, get_status
|
||||||
|
|
||||||
euid = os.geteuid()
|
euid = os.geteuid()
|
||||||
if euid == 0:
|
|
||||||
from ..tor import is_apt_transport_tor_enabled, get_hs, get_status
|
|
||||||
|
|
||||||
|
|
||||||
class TestTor(unittest.TestCase):
|
class TestTor(unittest.TestCase):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user