debug info to see what github actions is doing

This commit is contained in:
L1ghtn1ng 2021-08-22 04:22:01 +01:00
parent 59ac74e629
commit 448aa402c4

View file

@ -1,22 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# coding=utf-8 # coding=utf-8
import os
from theHarvester.lib.core import * from theHarvester.lib.core import *
from theHarvester.discovery import omnisint from theHarvester.discovery import omnisint
import os
import requests import requests
import pytest import pytest
pytestmark = pytest.mark.asyncio pytestmark = pytest.mark.asyncio
github_ci = os.getenv('GITHUB_ACTIONS') github_ci = os.getenv('GITHUB_ACTIONS')
print(github_ci)
class TestOmnisint(object): class TestOmnisint(object):
@staticmethod @staticmethod
def domain() -> str: def domain() -> str:
return 'uber.com' return 'uber.com'
@pytest.mark.skipif(github_ci == 'True', reason='Skipping on Github CI due unstable status code from site') @pytest.mark.skipif(github_ci == 'True', reason='Skipping on Github CI due to unstable status code from site')
async def test_api(self): async def test_api(self):
base_url = f'https://sonar.omnisint.io/all/{TestOmnisint.domain()}' base_url = f'https://sonar.omnisint.io/all/{TestOmnisint.domain()}'
headers = {'User-Agent': Core.get_user_agent()} headers = {'User-Agent': Core.get_user_agent()}