"vscode:/vscode.git/clone" did not exist on "bf146fb072b8dbf49efa2f874959ad978c48bf29"
__init__.py 689 Bytes
Newer Older
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
1
2
3
4
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
#
# We need to have __init__.py in tests dir due to a pytest issue.
#
# if you have:
#   tests/
#     aa/test_name.py
#     bb/test_name.py
#
# running `pytest tests` will give an error like "import file mismatch"
# because it can't distinguish between the file in `aa` and `bb` with
# the same file name. Add __init__.py file fixes it.
#
# However, `pytest tests/__init__.py` triggers running tests that's
# not related. So we just don't include any __init__.py in the test
# list files.