try to fix storagecounter test in CI
This commit is contained in:
parent
5e86864298
commit
fd6660aba1
@ -3,5 +3,5 @@ test:
|
||||
script:
|
||||
- apt-get update -qy
|
||||
- apt-get install -y python3-pip tor
|
||||
- pip3 install -r requirements.txt
|
||||
- pip3 install --require-hashes -r requirements.txt
|
||||
- make test
|
||||
|
@ -23,7 +23,6 @@ from etc import onionrvalues
|
||||
from logger.settings import *
|
||||
|
||||
def setup_config():
|
||||
config.reload()
|
||||
|
||||
if not os.path.exists(config._configfile):
|
||||
if os.path.exists('static-data/default_config.json'):
|
||||
@ -33,6 +32,8 @@ def setup_config():
|
||||
|
||||
config.save()
|
||||
|
||||
config.reload()
|
||||
|
||||
settings = 0b000
|
||||
if config.get('log.console.color', True):
|
||||
settings = settings | USE_ANSI
|
||||
|
@ -26,7 +26,7 @@ class TestStorageCounter(unittest.TestCase):
|
||||
import config
|
||||
_test_setup()
|
||||
self.assertIsNotNone(config.get('allocations.disk'))
|
||||
self.assertGreater(config.get('allocations.disk'), 1000000)
|
||||
self.assertGreaterEqual(config.get('allocations.disk'), 1000000)
|
||||
|
||||
def test_insert_too_much(self):
|
||||
import config
|
||||
|
Loading…
Reference in New Issue
Block a user