Format: application/x-python-code
1 o
2
3 ��h� � @ s d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddl Z ddl
4 mZmZ ddl
5 mZ ddlmZ dd lmZ dd
6 lmZ ee�� �Zed Zed Zd
7 d� Zdd� ZG dd� de�Ze jjejj dkoxdejj! k ovdk n dd�dd� �Z"dd� Z#dd� Z$dS )a Tests for profile-related functions.
8
9 Currently only the startup-dir functionality is tested, but more tests should
10 be added for:
11
12 * ipython profile create
13 * ipython profile list
14 * ipython profile create --parallel
15 * security dir permissions
16
17 Authors
18 -------
19
20 * MinRK
21
22 � N)�Path)�TemporaryDirectory)�TestCase)�list_bundled_profiles�list_profiles_in)�
23 ProfileDir)�
24 decorators)�tools)� getoutputZ
25 home_test_dirz.ipythonc C s t �� t jdd� dS )zSSetup test environment for the module:
26
27 - Adds dummy home dir tree
28 T��parentsN)r �cwd�IP_TEST_DIR�mkdir� r r �Uc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/core/tests/test_profile.py�setup_module1 s r c C s t �t� dS )zXTeardown test environment for the module:
29
30 - Remove dummy home dir tree
31 N)�shutil�rmtree�TMP_TEST_DIRr r r r �teardown_module; s r c @ s<