Added
Link Here
|
1 |
--- test/tests/test_01_basic.py.orig 2022-03-04 03:43:46 UTC |
2 |
+++ test/tests/test_01_basic.py |
3 |
@@ -17,6 +17,8 @@ import unittest |
4 |
import logging |
5 |
from test.OLItest import OLITestLib |
6 |
|
7 |
+import pytest |
8 |
+ |
9 |
# Things need to be setup first, usually setup.py initializes everything. |
10 |
# but if e.g. called from command line, we take care of default values here: |
11 |
if not OLITestLib.cred_file: |
12 |
@@ -47,6 +49,7 @@ class TestBasicFunctions(unittest.TestCase): |
13 |
def tearDown(self): |
14 |
OLITestLib.delete_remote_testfolders() |
15 |
|
16 |
+ @pytest.mark.skip(reason="skpping test needs remote auth") |
17 |
def test_01_olistartup(self): |
18 |
"""Tests if OLI can be invoked without exceptions |
19 |
|
20 |
@@ -60,6 +63,7 @@ class TestBasicFunctions(unittest.TestCase): |
21 |
"mails, but sync led to {0} folders and {1} mails" |
22 |
.format(boxes, mails)) |
23 |
|
24 |
+ @pytest.mark.skip(reason="skpping test needs remote auth") |
25 |
def test_02_createdir(self): |
26 |
"""Create local 'OLItest 1', sync""" |
27 |
OLITestLib.delete_maildir('') # Delete all local maildir folders |
28 |
@@ -71,6 +75,7 @@ class TestBasicFunctions(unittest.TestCase): |
29 |
"mails, but sync led to {0} folders and {1} mails" |
30 |
.format(boxes, mails)) |
31 |
|
32 |
+ @pytest.mark.skip(reason="skpping test needs remote auth") |
33 |
def test_03_createdir_quote(self): |
34 |
"""Create local 'OLItest "1"' maildir, sync |
35 |
|
36 |
@@ -87,6 +92,7 @@ class TestBasicFunctions(unittest.TestCase): |
37 |
"mails, but sync led to {0} folders and {1} mails" |
38 |
.format(boxes, mails)) |
39 |
|
40 |
+ @pytest.mark.skip(reason="skpping test needs remote auth") |
41 |
def test_04_nametransmismatch(self): |
42 |
"""Create mismatching remote and local nametrans rules |
43 |
|
44 |
@@ -108,6 +114,7 @@ class TestBasicFunctions(unittest.TestCase): |
45 |
# Write out default config file again |
46 |
OLITestLib.write_config_file() |
47 |
|
48 |
+ @pytest.mark.skip(reason="skpping test needs remote auth") |
49 |
def test_05_createmail(self): |
50 |
"""Create mail in OLItest 1, sync, wipe folder sync |
51 |
|
52 |
@@ -133,6 +140,7 @@ class TestBasicFunctions(unittest.TestCase): |
53 |
"assigned the IMAP's UID number, but {0} messages had no valid ID " |
54 |
.format(len([None for x in uids if x is None]))) |
55 |
|
56 |
+ @pytest.mark.skip(reason="skpping test needs remote auth") |
57 |
def test_06_createfolders(self): |
58 |
"""Test if createfolders works as expected |
59 |
|