[hsbc] Fix history/coming for Card accounts

Adapt with new hsbc way to reference each accounts accross the links.
Update the way we distinguish Checking account page from Card account
page
Adapt with new linkage between card account and parent account
Prevent failure if there is no entries recorded in the whole supported
historical period

Fix issue #381
6 jobs for hsbc-fix-card-history in 19 minutes and 21 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #27020
build:3

00:02:39

 
  Test
failed #27022
allowed to fail
lint:3

00:02:41

passed #27021
pyflakes:3

00:02:43

passed #27023
unittests:3

00:02:41

failed #27024
allowed to fail
unittests-modules:3

00:12:11

 
  Deploy
passed #27025
doc:3

00:01:41

 
Name Stage Failure
failed
unittests-modules:3 Test
-----------------------------------------------------------------------
TOTAL 73499 48657 34%
----------------------------------------------------------------------
Ran 369 tests in 620.359s

FAILED (SKIP=111, errors=123, failures=34)
=== Total coverage ===
MODULES COVERAGE: 34%
ERROR: Job failed: exit code 1
failed
lint:3 Test
Successfully installed cachetools-4.1.0 ecdsa-0.15 feedparser-5.2.1 geographiclib-1.50 geopy-1.21.0 google-api-core-1.17.0 google-api-python-client-1.8.2 google-auth-1.14.1 google-auth-httplib2-0.0.3 googleapis-common-protos-1.51.0 httplib2-0.17.3 protobuf-3.11.3 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycryptodomex-3.9.7 python-jose-3.1.0 rsa-4.0 selenium-3.141.0 simplejson-3.17.0 uritemplate-3.0.1 xlrd-1.2.0
$ ./tools/weboob_lint.sh
=== [ 0%] Getting file:///builds/sinopsysHK/weboob/modules
=== [100%] All modules are up-to-date.

Modules without tests: afer, ameli, amundi, april, banqueaccord, bforbank, bnpcards, bolden, bouygues, bp, caels, chronopost, cmb, cmso, colisprive, colissimo, degiro, edf, ensap, franceconnect, free, genericnewspaper, gmf, hellobank, impotsgouvfrpar, lendosphere, linebourse, lucca, materielnet, metalarchives, n26, nalo, netfinca, okc, oney, onlinenet, orange, ovh, pagesjaunes, peertube, redmine, relaiscolis, serebii, sogecartenet, swile, tapatalk, ticketscesu, wiseed, yomoni

Modules without icons: avendrealouer, aviva, bnpcards, bnppere, bolden, btpbanque, capeasi, cesu, cices, cmes, deathbycaptcha, degiro, ekwateur, ensap, erehsbc, esalia, franceconnect, free, gmf, hellobank, impotsgouvfrpar, lendosphere, linebourse, lucca, materielnet, meslieuxparis, metalarchives, nalo, netfinca, onlinenet, pradoepargne, serebii, sogecartenet, swile, tapatalk, themisbanque, ticketscesu, trainline, wiseed
ERROR: Job failed: exit code 1