Commit graph

9 commits

Author SHA1 Message Date
Gavin D'souza
b8f2c979b5 ci: Remove test suite TestFrappeHTTPRequest
Remove tests for HTTPRequest under test_auth because Frappe
develop CI started breaking after PR merge
2021-07-24 01:56:29 +05:30
Gavin D'souza
2ccfb547b5 test: Added test to check sanity of HTTPRequest.set_lang 2021-07-15 01:11:10 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Suraj Shetty
8875848355 perf(test): Reduce token expiry wait time for test
- Also, reduce lock_interval
2021-05-06 14:49:19 +05:30
Walstan Baptista
a15e1a7d59
test: sort folders and files before running tests for consistency (#12689)
* fix: sorted folders list befor adding tests

* fix: sort files as well

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>

* fix: remove unnecessary cstr

* fix: minor code quality change

* test: use unique `user_email` in `TestAuth`

* test: Use unique username for auth test

* test: Delete DocType Doc A completely after test is done

* test: Fix permission issue & typo in test cases

Co-authored-by: Sagar Vora <sagar@resilient.tech>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
2021-03-26 12:33:46 +00:00
Leela vadlamudi
2984026035
fix: Login with username fails (#12658)
With the recent refactoring we missed to include username check in auth
flow. Added test cases along with the fix.
2021-03-24 21:18:37 +05:30
leela
b22f53e74b test: basic authentication test is added 2021-03-22 19:17:57 +05:30
leela
6e5e0890f3 refactor: Cleaned authentication logic
Auth flow is changed to use login attempt tracker.
2021-02-22 21:11:18 +05:30
leela
49317ce045 refactor: Track login attempts of a user
Existing login attempt tracker is a set of funcions those are not easy
to understand. Created a tracker class that handles all tracker logic and provides
useful methods to access.

Testcases added for the same.
2021-02-22 21:08:33 +05:30