forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_link_order.py
32 lines (24 loc) · 901 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
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from logging import getLogger
import unittest
import pytest
import os
import shutil
import tempfile
from unittest.mock import patch
from conda.testing.integration import run_command, Commands
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 == '')