forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_link_order.py
35 lines (27 loc) · 976 Bytes
/
test_link_order.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import getLogger
import unittest
import pytest
import os
import shutil
import tempfile
from .test_create import run_command, Commands
try:
from unittest.mock import patch
except ImportError:
from mock import patch
log = getLogger(__name__)
class TestLinkOrder(unittest.TestCase):
def setUp(self):
self.prefix = tempfile.mkdtemp()
def tearDown(self):
shutil.rmtree(self.prefix)
@pytest.mark.integration
def test_link_order_post_link_actions(self):
stdout, stderr, _ = run_command(Commands.CREATE, self.prefix, "c_post_link_package", "-c", "conda-test")
assert(stderr == '')
@pytest.mark.integration
def test_link_order_post_link_depend(self):
stdout, stderr, _ = run_command(Commands.CREATE, self.prefix, "e_post_link_package", "-c", "conda-test")
assert(stderr == '')