Completed
Push — master ( 4b0061...e2ee43 )
by Stefan
10:56
created

conftest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A tmpdir() 0 5 1
1
# -*- coding: utf-8 -*-
2
# vim:fileencoding=utf-8
3
#
4
# Copyright (c) 2020 Stefan Bender
5
#
6
# This module is part of sciapy.
7
# sciapy is free software: you can redistribute it or modify
8
# it under the terms of the GNU General Public License as published
9
# by the Free Software Foundation, version 2.
10
# See accompanying LICENSE file or http://www.gnu.org/licenses/gpl-2.0.html.
11
"""Sciapy test fixtures
12
13
Test fixtures to run tests in a clean environment.
14
"""
15
import shutil
16
import tempfile
17
18
import pytest
19
20
21
@pytest.fixture(scope="session")
22
def tmpdir():
23
	tmpdir = tempfile.mkdtemp()
24
	yield tmpdir
25
	shutil.rmtree(tmpdir)
26