FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
GitPython/test/testlib/helper.py at 0.1 · og-python-scripts/GitPython · GitHub
og-python-scripts
GitPython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
GitPython
/
test
/
testlib
/
helper.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (14 loc) · 608 Bytes
Breadcrumbs
GitPython
/
test
/
testlib
/
helper.py
Copy path
File metadata and controls
19 lines (14 loc) · 608 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# helper.py
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
import
os
GIT_REPO
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)))
def
fixture_path
(
name
):
test_dir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
return
os
.
path
.
join
(
test_dir
,
"fixtures"
,
name
)
def
fixture
(
name
):
return
open
(
fixture_path
(
name
)).
read
()
def
absolute_project_path
():
return
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
".."
))
Back
|
FazBrowse Home
|
New Git URL