Ludovic Stephan
d6fa738a25
Fix tests
2020-09-07 14:57:41 +02:00
Martin Pépin
dcd592ed11
Fix 100 tests wrt. 754a0b70e (big url changes)
2020-09-02 20:28:19 +02:00
Ludovic Stephan
0875ef1278
Black v20
2020-08-28 18:00:54 +02:00
Martin Pépin
e7517195cd
Generic autocompletion view
2020-07-18 16:07:12 +02:00
Martin Pépin
c5adc6b7d8
Use the new shared autocomplete framework in kfet/
2020-06-20 19:28:48 +02:00
Ludovic Stephan
c9dad9465a
Fix tests
2020-05-08 11:14:32 +02:00
Ludovic Stephan
931b2c4e1f
Refactor js code
...
Harmonize history denominations
* opegroups/transfergroups -> groups
* opes/transfers -> entries
* snake/camel case -> snake case
2020-04-23 18:11:23 +02:00
Ludovic Stephan
8d11044610
Fix: pas d'erreur quand pas de compte K-Fêt
2020-04-23 18:11:23 +02:00
Ludovic Stephan
786c8f132f
Fix: tests cassés par commit précédent
2020-04-23 18:11:23 +02:00
Ludovic Stephan
fb4455af39
Fix tests 3
2020-04-23 18:11:23 +02:00
Ludovic Stephan
550a073d51
Fix tests again
2020-04-23 18:11:23 +02:00
Ludovic Stephan
c95e1818b2
Fix ws tests
2020-04-23 18:11:23 +02:00
Martin Pépin
1f945d1af3
Avoid using get_by_natural_key
2019-12-24 17:14:45 +01:00
Martin Pépin
64c792b11f
Disambiguation in kfet's permission handling
...
In some places we used to refer to permissions based on their codename
only (the part after the dot "." in the following examples) which can be
ambiguous. Typically, we might define permissions like "bds.is_team" or
"cof.is_team" in the near future ;)
2019-12-24 17:14:45 +01:00
Antonin Reitz
e97c873b4f
Merge branch 'Aufinal/backbone' into 'master'
...
Refactor le JS de K-Psul via Backbone : 1ère étape
See merge request klub-dev-ens/gestioCOF!388
2019-12-11 23:19:44 +01:00
Ludovic Stephan
85aa56d030
Fix tests
2019-11-29 15:33:03 +01:00
Ludovic Stephan
1115960107
Add unit test
2019-11-27 16:57:48 +01:00
Ludovic Stephan
e62756ed29
Fix tests
2019-11-27 14:20:24 +01:00
Ludovic Stephan
b376114bee
Fix tests
2019-11-03 00:36:57 +01:00
Martin Pépin
d37c41e99f
kfet/test_views: more eloquent test names
2019-10-05 13:48:29 +02:00
Martin Pépin
e0285607a0
Fix tests according to issue #224
2019-10-05 02:25:05 +02:00
Ludovic Stephan
8d30c5c7e5
Fix tests
2019-06-17 22:02:11 +02:00
Ludovic Stephan
c4948be1f7
Use http_methods_allowed attribute
2019-06-03 22:59:43 +02:00
Ludovic Stephan
d4be8b426e
Tests pour la suppression d'articles
2019-05-29 18:29:15 +02:00
Ludovic Stephan
f12370a6cd
Tests (!!)
2019-05-29 18:29:15 +02:00
Ludovic Stephan
03c74a7940
Misc fixes
2019-04-17 20:50:49 +02:00
Ludovic Stephan
5fd4cb5c78
Change django.core.urlresolvers
imports
...
-- compatible with 1.11 --
2019-03-19 10:18:56 +01:00
Aurélien Delobelle
b69f1b6dbc
kfet.tests -- Add tests for cancel_operations view
2018-10-21 13:07:44 +02:00
Aurélien Delobelle
d7ca072af3
kfet.tests -- Add factories for many kfet models
...
- Article
- ArticleCategory
- Checkout
- CheckoutStatement
- Inventory
- InventoryArticle
- Operation
- OperationGroup
2018-10-21 12:50:09 +02:00
Aurélien Delobelle
fdd2b35289
core -- Apply black + isort to all files
2018-10-06 13:15:33 +02:00
Aurélien Delobelle
507a59c914
kfet.tests -- Add tests for perform_operations view
2018-10-04 11:25:10 +02:00
Martin Pépin
a73736bf41
Merge branch 'master' into Kerl/drop_py2_compat
2018-04-16 14:12:36 +02:00
Martin Pepin
c94a9ecb44
Merge branch 'aureplop/kfet_initial-statement' into 'master'
...
kfet -- Create initial statement on checkout save
See merge request cof-geek/gestioCOF!283
2018-02-05 22:42:04 +01:00
Martin Pepin
a3295ca6a3
Merge branch 'aureplop/fix-184' into 'master'
...
Fix available checkouts in K-Psul
Closes #184
See merge request cof-geek/gestioCOF!282
2018-02-05 22:35:04 +01:00
Aurélien Delobelle
478f56d94b
kfet -- Create initial statement on checkout save
...
- Why? Because it should be the actual behavior.
- To allow using arithmetic operations with values of DecimalField when
object are not retrieved from DB, some strings are replaced by Decimal
or int.
If you wonder why it's not automatically done, see:
https://code.djangoproject.com/ticket/27825
2018-01-16 16:49:02 +01:00
Aurélien Delobelle
e23e1bdba6
kfet -- Add test to check the choices of checkouts in K-Psul
...
Particularly, it adds a regression test for #184 .
2018-01-15 17:01:06 +01:00
Aurélien Delobelle
6059ca067b
Speed up tests
...
~20% less using MD5 and force_login in kfet testcase.
~77% less by disabling the debug tollbar.
2018-01-15 05:41:51 +01:00
Martin Pépin
5a5b60ec4d
Merge branch 'master' into Kerl/drop_py2_compat
2018-01-10 20:12:59 +01:00
Martin Pépin
475f1adec5
Remove "coding: utf8" line
2018-01-06 16:10:13 +01:00
Aurélien Delobelle
b0b0542407
Upgrade to Django 1.11
...
- Deprecation warnings using Django 1.8 are resolved.
- Deprecation warnings using Django 1.11 are resolved.
- Admin: grappelli is no longer used.
- Upgrade to django-autocomplete-light v3 (v2 is not 1.11 compatible).
* autocomplete.modelform_factory being dropped, code uses dal Select2
views and widgets.
2017-11-19 18:41:39 +01:00
Aurélien Delobelle
af3a7cf697
Reapply fix to kfetauth (…) and fix tests
2017-10-24 17:56:14 +02:00
Aurélien Delobelle
8cdb4c62fc
Merge branch 'master' into test/views
2017-10-24 16:45:26 +02:00
Aurélien Delobelle
e5d19811e8
Clean code related to kfet password
2017-09-22 23:31:46 +02:00
Aurélien Delobelle
bf61e41b50
Move auth-related from 'kfet' app to 'kfet.auth'.
2017-09-19 17:05:51 +02:00
Aurélien Delobelle
af97c0cda6
Improve users management on kfet TestCase, and Py34 compat
2017-09-01 16:37:14 +02:00
Aurélien Delobelle
997b63d6b6
More docs for kfet.tests.utils
2017-09-01 13:35:32 +02:00
Aurélien Delobelle
d8391e54a5
Add docs to kfet TestCases
2017-09-01 12:39:17 +02:00
Aurélien Delobelle
b4b15ab371
Tests of kfet config views pass
2017-08-16 22:30:17 +02:00
Aurélien Delobelle
2cfce1c921
Add tests for kfet views.
...
kfet.tests.testcases embed mixins for TestCase:
- TestCaseMixin provides assertion helpers,
- ViewTestCaseMixin provides a few basic tests, which are common to
every view.
kfet.tests.utils provides helpers for users and permissions management.
Each kfet view get a testcase (at least very basic) in
kfet.tests.test_views.
2017-08-16 17:45:59 +02:00
Aurélien Delobelle
c9aac8a49d
[WIP] Tests for kfet views
2017-08-10 15:02:08 +02:00