Skip to content
Snippets Groups Projects
Select Git revision
  • 3c41089e6e0de34152907d33dba4fa71e09e56c1
  • master default protected
  • feat/new-image-formats
  • clickable-select-chevron
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.0
  • 2.16.1
  • 2.16.0
  • 2.15.0
  • 2.14.0
  • 2.13.0
  • 2.12.1
  • 2.11.0
  • 2.10.0
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.1
  • 2.7.0
  • 2.6.0
  • 2.5.2
  • 2.5.1
24 results

screens.js

Blame
  • conftest.py 541 B
    from elasticsearch import Elasticsearch
    import os
    import pytest
    import random
    import string
    
    
    @pytest.fixture(scope='session')
    def es():
        """Elasticsearch client."""
        es_dsn = os.environ.get('ELASTICSEARCH_DSN', 'http://localhost:9200')
        es_client = Elasticsearch(es_dsn)
        yield es_client
        es_client.indices.delete('test_*')
    
    
    @pytest.fixture
    def index_name():
        """Random test index name."""
        length = 10
        word = ''.join(random.choice(string.ascii_lowercase) for i in range(length))
        return 'test_{}'.format(word)