Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Marta Miranda
/
boletin_api
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Enzo Yair
2023-10-10 11:23:57 -0300
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
d4fe6a3502da737c9f29fadc0ec5191547bf07b6
d4fe6a35
2 parents
ca3fce70
620db584
Merge branch 'fix/utils' into 'develop'
migracion que no aplica See merge request
!71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
project/apps/edicto/models.py
project/apps/edicto/tests/tests_edicto.py
project/apps/edicto/models.py
View file @
d4fe6a3
...
...
@@ -10,7 +10,7 @@ from .constants import STATUS_CHOICE, MONEDA
class
Precio
(
models
.
Model
):
precio
=
models
.
FloatField
(
max_length
=
50
,
blank
=
False
,
null
=
False
,
editable
=
False
)
precio
=
models
.
FloatField
(
max_length
=
50
,
blank
=
False
,
null
=
False
)
vigencia_desde
=
models
.
DateField
()
vigencia_hasta
=
models
.
DateField
(
blank
=
True
,
null
=
True
)
usuario
=
models
.
ForeignKey
(
Usuario
,
on_delete
=
models
.
CASCADE
,
editable
=
False
)
...
...
project/apps/edicto/tests/tests_edicto.py
View file @
d4fe6a3
...
...
@@ -5,6 +5,6 @@ from edicto.models import Edicto
class
ContadorTestCase
(
TestCase
):
def
test_contador
(
self
):
edicto
=
"Texto de prueba con palabras números y expresiones 58. (...) (entre paréntesis [y corchetes]) x=345"
edicto
=
"Texto de prueba con palabras números y expresiones 58.
-
(...) (entre paréntesis [y corchetes]) x=345"
resultado
=
contador
(
edicto
)
self
.
assertEqual
(
resultado
,
15
)
...
...
Please
register
or
login
to post a comment