Sign Up

Sign In

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Sorry, you do not have a permission to ask a question, You must login to ask question.

Discy Latest Questions

  • 1
  • 1

Unit testing conn() using mock: app.py import mysql.connector import os,urlparse def conn(): if 'DATABASE_URL' in os.environ: url=urlparse(os.environ['DATABASE_URL']) g.db = mysql.connector.connect(user=url.username,password=url.password, host=url.hostname,database=url.path[1:]) else mysql.connector.error.Errors as err: return "Error test.py def test_conn(self): ...

  • 0
  • 0

Check the update on the bottom! I have a service that throws an error while the app is bootstrapping. Cannot read property 'call' of undefined. I’m using ng2 2.4.2 and angular-cli 1.0.0-beta.24. ERROR Uncaught TypeError: Cannot read property ‘call’ of undefined at webpack_require (bootstrap ...

  • 0
  • 0

I have abstract class(without constructor) and I want to inject another class into it. Abstract class: import { ErrorHandler } from '../../shared/services/errorHandler.service'; import { Inject } from '@angular/core'; export abstract class BaseApiComponent<T> { @Inject(ErrorHandler) errorHandler: ErrorHandler; this.errorHandler.test(); } Injected class: import ...

close