Commit 46c2e8b9 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[gitlab-ci] autogenerated from tox

parent 15b69532c99a
image: python:3.7
before_script:
- pip install tox
check-manifest:
script: tox -e check-manifest
flake8:
script: tox -e flake8
py3:
image: r.ext.logilab.fr/jenkins/jnlp:buster
script: tox -e py3
......@@ -12,3 +12,4 @@ include dev-requirements.txt tox.ini
prune debian
prune cubicweb-saem-ref.spec
include README.rst
exclude .gitlab-ci.yml
......@@ -129,7 +129,7 @@ _orig_run = skos.ImportSkosData.run
@monkeypatch(skos.ImportSkosData) # noqa: F811
def run(self, args):
def run(self, args): # noqa: F811
if self.get('format') == 'lcsv':
scheme_ark = self.get('scheme')
if not scheme_ark:
......
......@@ -96,7 +96,7 @@ def add_relations_button(req, entity, msg, *relations_info, **extraurlparams):
"""Return an HTML dropdown button to add relations with `entity` as object"""
links = [relation_link(req, entity, relation_info, **extraurlparams)
for relation_info in relations_info]
links = [l for l in links if l]
links = [link for link in links if link]
if links:
# No links if user cannot add any relation.
return dropdown_button(req._(msg), links)
......
......@@ -187,7 +187,7 @@ class FuncViewsTC(CubicWebTC):
agent = testutils.authority_record(cnx, u'jim')
for ark, expected_filename in (
(u"", "EAC_{0}.xml".format(agent.eid)),
(u"ZZZ/4242", "EAC_ZZZ-4242.xml".format(agent.eid)),
(u"ZZZ/4242", "EAC_ZZZ-4242.xml"),
):
agent.cw_set(ark=ark)
view = self.vreg['views'].select('eac.export', req, agent.as_rset())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment