Skip to content

Commit 392da54

Browse files
relativisticelectronk9ert
andauthored
Bugfix: Service Manager loads wrong service Test-config (#1907)
* fix bug * fix see #1907 (comment) * trying to fix flaky cpyress Co-authored-by: k9ert <[email protected]>
1 parent 3050893 commit 392da54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cypress/integration/spec_wallet_utxo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe('Test the actions in UTXO list', () => {
105105
cy.log("Check the labeling of the unsigned UTXO")
106106
cy.get('#btn_transactions').click()
107107
cy.wait(1000)
108-
cy.get('tx-table').find('.utxo-view-btn').click()
108+
cy.get('tx-table').find('.utxo-view-btn').click({ force: true })
109109
cy.get('tx-table').find('tx-row').eq(2).find('#column-category').should('contain', 'Unsigned')
110110
cy.get('tx-table').find('tx-row').eq(3).find('#column-category').should('contain', 'Unsigned')
111111
// Check that only the two checkboxes of the unsigned UTXO are visible

src/cryptoadvance/specter/managers/service_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ def configure_service_for_module(cls, clazz):
258258
if isclass(attribute):
259259
clazz = attribute
260260
potential_config_classes.append(clazz)
261-
if clazz.__name__.endswith(
262-
main_config_clazz_slug
261+
if (
262+
clazz.__name__.split(".")[-1] == main_config_clazz_slug
263263
): # e.g. BaseConfig or DevelopmentConfig
264264
cls.import_config(clazz)
265265
return
@@ -270,7 +270,7 @@ def configure_service_for_module(cls, clazz):
270270
config_candidate_class = config_clazz.__bases__[0]
271271
while config_candidate_class != object:
272272
for clazz in potential_config_classes:
273-
if clazz.__name__.endswith(config_candidate_class.__name__):
273+
if clazz.__name__.split(".")[-1] == config_candidate_class.__name__:
274274
cls.import_config(clazz)
275275
return
276276
config_candidate_class = config_candidate_class.__bases__[0]

0 commit comments

Comments
 (0)