Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5c8e57

Browse files
denfromufavmuriart
denfromufa
authored andcommitted
improve tests.pyproj for intellisense and running tests (#395)
* Update tests.pyproj * Update folder structure After pytest folders were flatten. Add code in fixture Upstream PyImportTest was moved to within Embedded Tests Add pyproj to editorconfig
1 parent faf5faf commit c5c8e57

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ trim_trailing_whitespace = true
1616
indent_size = 2
1717

1818
# Xml project files
19-
[*.{csproj,config,build,config}]
19+
[*.{csproj,pyproj,config}]
2020
indent_size = 2
2121

2222
# Solution

src/tests/tests.pyproj

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ProjectGuid>{250c535c-c060-4f0c-bd80-41f2bf373565}</ProjectGuid>
77
<ProjectHome />
88
<StartupFile>runtests.py</StartupFile>
9-
<SearchPath />
9+
<SearchPath>..\..\</SearchPath>
1010
<WorkingDirectory>.</WorkingDirectory>
1111
<OutputPath>.</OutputPath>
1212
<ProjectTypeGuids>{888888a0-9f3d-457c-b088-3a5042f75d52}</ProjectTypeGuids>
@@ -27,17 +27,17 @@
2727
<PtvsTargetsFile>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets</PtvsTargetsFile>
2828
</PropertyGroup>
2929
<ItemGroup>
30+
<Compile Include="__init__.py" />
31+
<Compile Include="_compat.py" />
32+
<Compile Include="_missing_import.py" />
3033
<Compile Include="leaktest.py" />
3134
<Compile Include="profile.py" />
32-
<Compile Include="PyImportTest\sysargv.py" />
33-
<Compile Include="PyImportTest\test\one.py" />
34-
<Compile Include="PyImportTest\test\__init__.py" />
35-
<Compile Include="PyImportTest\__init__.py" />
3635
<Compile Include="runtests.py" />
3736
<Compile Include="stress.py" />
3837
<Compile Include="stresstest.py" />
3938
<Compile Include="test_sysargv.py" />
4039
<Compile Include="test_array.py" />
40+
<Compile Include="test_callback.py" />
4141
<Compile Include="test_class.py" />
4242
<Compile Include="test_compat.py" />
4343
<Compile Include="test_constructors.py" />
@@ -50,23 +50,20 @@
5050
<Compile Include="test_exceptions.py" />
5151
<Compile Include="test_field.py" />
5252
<Compile Include="test_generic.py" />
53+
<Compile Include="test_import.py" />
5354
<Compile Include="test_indexer.py" />
5455
<Compile Include="test_interface.py" />
5556
<Compile Include="test_method.py" />
5657
<Compile Include="test_module.py" />
5758
<Compile Include="test_property.py" />
59+
<Compile Include="test_recursive_types.py" />
5860
<Compile Include="test_subclass.py" />
59-
<Compile Include="test_suite\test_callback.py" />
60-
<Compile Include="test_suite\test_import.py" />
61-
<Compile Include="test_suite\test_recursive_types.py" />
62-
<Compile Include="test_suite\_missing_import.py" />
63-
<Compile Include="test_suite\__init__.py" />
6461
<Compile Include="test_thread.py" />
62+
<Compile Include="utils.py" />
63+
<Compile Include="fixtures\argv-fixture.py" />
6564
</ItemGroup>
6665
<ItemGroup>
67-
<Folder Include="PyImportTest" />
68-
<Folder Include="PyImportTest\test" />
69-
<Folder Include="test_suite" />
66+
<Folder Include="fixtures" />
7067
</ItemGroup>
7168
<Import Project="$(PtvsTargetsFile)" Condition="Exists($(PtvsTargetsFile))" />
7269
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" Condition="!Exists($(PtvsTargetsFile))" />

0 commit comments

Comments
 (0)