Ejemplo n.º 1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function

try:
    from . import testutils
except (ValueError, ImportError):
    import testutils
testutils.add_module(
)  # make sure the test are importing the NON-installed version
import PyFiSync

import os
import sys
import shutil
import itertools
from glob import glob
import re
from pprint import pprint

import pytest

## Specify whether to test remotely or locally...or both
# remotes = [False]   # Just test locally
# remotes = [False,True]
remotes = [False, 'python2', 'python3']


@pytest.mark.parametrize("remote,AB,all_",
                         list(
                             itertools.product(remotes, ['A', 'B'],
Ejemplo n.º 2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals, absolute_import

try:
    from . import testutils
except (ValueError, ImportError):
    import testutils

testutils.add_module()

import PyFiSync

import os
import sys
import shutil
import itertools
from glob import glob
import re
from pprint import pprint

import pytest

## Specify whether to test remotely or locally...or both
# remotes = [False]   # Just test locally
# remotes = ['python2','python3']
remotes = [False, 'python2', 'python3']
# remotes = ['python2']


@pytest.mark.parametrize("remote", remotes)