Commit 9b729b99 authored by David Foucher's avatar David Foucher
Browse files

Merge branch 'fix-test' into 'master'

Fix test

See merge request !7
parents 0067624c c1e07867
Pipeline #2045 passed with stage
in 1 minute and 17 seconds
......@@ -9,11 +9,11 @@ def is_pkg(line):
with Path("requirements.txt").open() as reqs:
install_requires = [l for l in reqs.read().split("\n") if is_pkg(l)]
VERSION = (0, 7, 15)
VERSION = (0, 7, 16)
__author__ = "Yohan Boniface"
__contact__ = "yohan.boniface@data.gouv.fr"
__homepage__ = "https://framagit.org/ybon/trefle"
__homepage__ = "https://git.beta.pole-emploi.fr/open-source/trefle"
__version__ = ".".join(map(str, VERSION))
setup(
......
import json
import pprint
from datetime import datetime
from pathlib import Path
import pytest
......@@ -23,7 +24,7 @@ BODY = {
"dateFinIndemnisation": "2018-11-10",
},
"departementHabitation": "35",
"dateNaissance": "2000-12-12",
"dateNaissance": f"{int(datetime.now().__format__('%Y')) - 18}-01-01",
"niveauEtude": "1",
"montantCPF": "100",
"contratApprentissage": "true",
......@@ -80,7 +81,7 @@ async def test_legacy_context(client):
"beneficiaire.creation_entreprise": True,
"formation.intitule_norme": "",
"beneficiaire.age": 18,
"beneficiaire.naissance": 976_579_200,
"beneficiaire.naissance": 978307200,
"formation.codes_naf": ["4532Z"],
"formation.contrat_apprentissage": False,
"formation.contrat_professionnalisation": False,
......
<financements>
<h2>Liste des types de financements <a href=https://framagit.org/ybon/trefle/tree/master/trefle/config/financements.yml target=_blank><i class="icon">edit</i></a></h2>
<h2>Liste des types de financements <a href=https://git.beta.pole-emploi.fr/open-source/trefle/tree/master/trefle/config/financements.yml target=_blank><i class="icon">edit</i></a></h2>
<dl each={ this.financements }>
<dt>{ intitule }</dt>
<dd if={ racine.endsWith('.rules') }><strong>Règles racine</strong>: <a href="#/rules/{ racine }">{ racine } <i class="icon">arrow_forward</i></a></dd>
......
......@@ -7,7 +7,7 @@
<rules-menu title="Règles de normalisation" namespace="normalisation"></rules-menu>
</aside>
<div if={ this.rule }>
<h3>{ this.rule.path } <a href=https://framagit.org/ybon/trefle/tree/master/trefle/config/rules/{ this.rule.path } target=_blank> <i class="icon">edit</i></a></h3>
<h3>{ this.rule.path } <a href=https://git.beta.pole-emploi.fr/open-source/trefle/tree/master/trefle/config/rules/{ this.rule.path } target=_blank> <i class="icon">edit</i></a></h3>
<rule content={ this.rule.data } class=with-lines></rule>
</div>
<div if={ !this.rule }>
......
......@@ -3,9 +3,9 @@
<li each={ filter in this.filters }><a href="#" onclick={ this.toggle } class='{ on: this.selected_filters && (this.selected_filters.indexOf(filter) != -1) }' title={ filter }>{ filter }</a></li>
</ul>
<div if={ this.selected_filters.length && this.active.length }>
<!-- <h3>{ this.feature.path } <a href=https://framagit.org/ybon/trefle/tree/master/trefle/config/{ this.feature.path } target=_blank> <i class="icon">edit</i></a></h3> -->
<!-- <h3>{ this.feature.path } <a href=https://git.beta.pole-emploi.fr/open-source/trefle/tree/master/trefle/config/{ this.feature.path } target=_blank> <i class="icon">edit</i></a></h3> -->
<ul>
<li each={ this.active }><h4>{ name } <a href=https://framagit.org/ybon/trefle/tree/master/{ filename }#L{ line } target=_blank><i class=icon>edit</i></a></h4>
<li each={ this.active }><h4>{ name } <a href=https://git.beta.pole-emploi.fr/open-source/trefle/tree/master/{ filename }#L{ line } target=_blank><i class=icon>edit</i></a></h4>
<rule content={ raw }></rule>
<!-- <pre><div each={ steps }>{ keyword } { name }</div></pre> -->
</li>
......
......@@ -44,7 +44,7 @@
</schema>
<schema-entries>
<h2>{ this.opts.name } <a href=https://framagit.org/ybon/trefle/tree/master/trefle/config/schema.yml target=_blank><i class=icon>edit</i></a></h2>
<h2>{ this.opts.name } <a href=https://git.beta.pole-emploi.fr/open-source/trefle/tree/master/trefle/config/schema.yml target=_blank><i class=icon>edit</i></a></h2>
<dl each={ props, key in this.opts.items } id='schema/{ key }'>
<dt>{props.label || props.description} <a href="#schema/{ key }" class=anchor>#</a></dt>
<dd if={ props.value }><strong>Valeur constante</strong> { renderValue(key, props.value) }</dd>
......
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