зеркало из https://github.com/nextcloud/appstore.git
code cleanup and exclude some files in coverage
This commit is contained in:
Родитель
9679871e10
Коммит
277fb6243d
|
@ -0,0 +1,13 @@
|
|||
[report]
|
||||
exclude_lines =
|
||||
pragma : no cover
|
||||
def __repr__
|
||||
if self.debug:
|
||||
if settings.DEBUG
|
||||
raise AssertionError
|
||||
raise NotImplementedError
|
||||
if 0:
|
||||
if __name__ == .__main__.:
|
||||
omit =
|
||||
wsgi.py
|
||||
nextcloudappstore/core/migrations/*
|
|
@ -26,3 +26,4 @@ bin/
|
|||
*.mo
|
||||
.coverage
|
||||
newrelic.ini
|
||||
/htmlcov/
|
||||
|
|
4
Makefile
4
Makefile
|
@ -90,3 +90,7 @@ test-data:
|
|||
l10n:
|
||||
$(manage) compilemessages --settings nextcloudappstore.settings.development
|
||||
$(manage) importdbtranslations --settings nextcloudappstore.settings.development
|
||||
|
||||
.PHONE: coverage
|
||||
coverage:
|
||||
$(coverage) html
|
||||
|
|
|
@ -11,11 +11,12 @@ describe('HTML templating utilities', () => {
|
|||
});
|
||||
|
||||
it('should evaluate a template', () => {
|
||||
const tpl = `<template><span><p></p></span></template>`;
|
||||
const expected = `<span class="test"><p><hi alt="as"></p></span>`;
|
||||
const tpl = `<template><p><span></span></p></template>`;
|
||||
const expected = `<p class="test"><span><a href="as"></a` +
|
||||
`></span></p>`;
|
||||
testDom('body', HTMLBodyElement, tpl,
|
||||
(elem: HTMLTemplateElement) => {
|
||||
const result = render(elem, {p: '<hi alt="as">'});
|
||||
const result = render(elem, {span: '<a href="as"></a>'});
|
||||
result.classList.add('test');
|
||||
const tmp = document.createElement('div');
|
||||
tmp.appendChild(result);
|
||||
|
@ -24,3 +25,4 @@ describe('HTML templating utilities', () => {
|
|||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -424,7 +424,7 @@ form .text-danger {
|
|||
}
|
||||
|
||||
#app-upload-form #detail-msg .text-danger {
|
||||
padding: 0px !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.app-form {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<a role="tab"
|
||||
data-toggle="tab"
|
||||
aria-controls="home"
|
||||
href="#home">{% trans 'Log in' %}</a>
|
||||
href="#">{% trans 'Log in' %}</a>
|
||||
</li>
|
||||
{% get_providers as socialaccount_providers %}
|
||||
{% for provider in socialaccount_providers %}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<a role="tab"
|
||||
data-toggle="tab"
|
||||
aria-controls="home"
|
||||
href="#home">{% trans 'Create account' %}</a>
|
||||
href="#">{% trans 'Create account' %}</a>
|
||||
</li>
|
||||
{% get_providers as socialaccount_providers %}
|
||||
{% for provider in socialaccount_providers %}
|
||||
|
|
Загрузка…
Ссылка в новой задаче