fix conftest path to VERSION

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2019-01-21 20:37:05 -06:00
parent 08c2ac2e48
commit 38d76d7ec8
No known key found for this signature in database
GPG Key ID: 2193804FCA429855
1 changed files with 2 additions and 1 deletions

View File

@ -1,12 +1,13 @@
import pytest
import testinfra
import os
check_output = testinfra.get_backend(
"local://"
).get_module("Command").check_output
__version__ = None
dotdot = os.path.abspath(os.path.join('.', os.pardir))
dotdot = os.path.abspath(os.path.join(os.path.abspath(__file__), os.pardir, os.pardir))
with open('{}/VERSION'.format(dotdot), 'r') as v:
__version__ = v.read().strip()