Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar GTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar GTK
Merge requests
!2
Add unit tests with pytest and report on coverage
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add unit tests with pytest and report on coverage
pytest
into
master
Overview
0
Commits
5
Pipelines
2
Changes
8
Merged
Nico
requested to merge
pytest
into
master
5 years ago
Overview
0
Commits
5
Pipelines
2
Changes
8
Expand
0
0
Merge request reports
Compare
master
version 1
dfe367c6
5 years ago
master (base)
and
latest version
latest version
15f81bb0
5 commits,
5 years ago
version 1
dfe367c6
4 commits,
5 years ago
8 files
+
68
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
src/briar/api/constants.py
+
5
−
3
Options
@@ -6,13 +6,15 @@ from os.path import join
from
pathlib
import
Path
from
urllib.parse
import
urljoin
_BRIAR_DIR
=
"
.briar
"
_BRIAR_DIR_NAME
=
"
.briar
"
_HOME
=
str
(
Path
.
home
())
_BRIAR_DIR
=
join
(
_HOME
,
_BRIAR_DIR_NAME
)
_HOST
=
"
%s://localhost:7000
"
_VERSION_SUFFIX
=
"
v1/
"
BRIAR_AUTH_TOKEN
=
join
(
Path
.
home
(),
_BRIAR_DIR
,
"
auth_token
"
)
BRIAR_DB
=
join
(
Path
.
home
(),
_BRIAR_DIR
,
"
db
"
,
"
db.mv.db
"
)
BRIAR_AUTH_TOKEN
=
join
(
_BRIAR_DIR
,
"
auth_token
"
)
BRIAR_DB
=
join
(
_BRIAR_DIR
,
"
db
"
,
"
db.mv.db
"
)
BASE_HTTP_URL
=
urljoin
(
_HOST
%
"
http
"
,
_VERSION_SUFFIX
)
WEBSOCKET_URL
=
urljoin
(
_HOST
%
"
ws
"
,
"
%s/ws
"
%
_VERSION_SUFFIX
)
Loading