Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp-notification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
djangoldp-packages
djangoldp-notification
Merge requests
!22
feat: Add permissions to subscriptions to only exposed user's
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat: Add permissions to subscriptions to only exposed user's
fix-sibscriptions-permissions
into
master
Overview
0
Commits
1
Pipelines
1
Changes
6
Merged
Ghost User
requested to merge
fix-sibscriptions-permissions
into
master
5 years ago
Overview
0
Commits
1
Pipelines
1
Changes
6
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
75baf561
1 commit,
5 years ago
6 files
+
144
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
djangoldp_notification/tests/conftest.py
0 → 100644
+
15
−
0
Options
from
importlib
import
import_module
from
os
import
environ
from
pytest
import
fail
settings_module
=
environ
.
get
(
"
DJANGO_SETTINGS_MODULE
"
)
if
settings_module
is
None
or
len
(
settings_module
)
==
0
:
fail
(
"
DJANGO_SETTINGS_MODULE needs to be defined and point to your SIB app installation settings
"
)
try
:
import_module
(
settings_module
)
except
ImportError
:
initial_module
=
[
token
for
token
in
settings_module
.
split
(
"
.
"
)
if
len
(
token
)
>
0
][
0
]
fail
(
"
Unable to import {}. Try to configure PYTHONPATH to point the
"
"
directory containing the {} module
"
.
format
(
settings_module
,
initial_module
))
Loading