Posts

Showing posts from December 25, 2018

Want to know currently executing test/class name of pytest from normal py script

Image
-1 Have A.py contains only fixtures and classes related to pytest In A.py , One of fixture calls function which is in B.py (B.py in not an pytest script it's normal py script) In B.py script, want to know and check current test script name /fixture/current class of A.py Based on current test name in A.py I need to execute some instructions in B.py script Is there any solution? Note: I don't want to edit A.py python pytest share | improve this question edited Nov 23 at 7:17 asked Nov 23 at 2:54 ...

How to get player ID using one signal in React Native?

Image
0 i'm trying to use oneSignal. I follow the steps from the documentation. when I run the app, it should console the device information according to this code in my index.js : constructor(properties) { super(properties); // OneSignal.init("e353b33e-8b5f-4093-8a86-073b0504b5f2"); OneSignal.addEventListener('received', this.onReceived); OneSignal.addEventListener('opened', this.onOpened); OneSignal.addEventListener('ids', this.onIds); } componentWillUnmount() { OneSignal.removeEventListener('received', this.onReceived); OneSignal.removeEventListener('opened', this.onOpened); // OneSignal.removeEventListener('registered', this.onRegistered); OneSignal.removeEventListener('ids', this.onIds); } onReceiv...